Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3.1kdownloads
rollup.d.ts1226 linesDownload Raw Back to dist
1import type * as estree from 'estree';2 3declare module 'estree' {4	export interface Decorator extends estree.BaseNode {5		type: 'Decorator';6		expression: estree.Expression;7	}8	interface PropertyDefinition {9		decorators: estree.Decorator[];10	}11	interface MethodDefinition {12		decorators: estree.Decorator[];13	}14	interface BaseClass {15		decorators: estree.Decorator[];16	}17}18 19export const VERSION: string;20 21// utils22type NullValue = null | undefined | void;23type MaybeArray<T> = T | T[];24type MaybePromise<T> = T | Promise<T>;25 26type PartialNull<T> = {27	[P in keyof T]: T[P] | null;28};29 30export interface RollupError extends RollupLog {31	name?: string | undefined;32	stack?: string | undefined;33	watchFiles?: string[] | undefined;34}35 36export interface RollupLog {37	binding?: string | undefined;38	cause?: unknown | undefined;39	code?: string | undefined;40	exporter?: string | undefined;41	frame?: string | undefined;42	hook?: string | undefined;43	id?: string | undefined;44	ids?: string[] | undefined;45	loc?: {46		column: number;47		file?: string | undefined;48		line: number;49	};50	message: string;51	meta?: any | undefined;52	names?: string[] | undefined;53	plugin?: string | undefined;54	pluginCode?: unknown | undefined;55	pos?: number | undefined;56	reexporter?: string | undefined;57	stack?: string | undefined;58	url?: string | undefined;59}60 61export type LogLevel = 'warn' | 'info' | 'debug';62export type LogLevelOption = LogLevel | 'silent';63 64export type SourceMapSegment =65	| [number]66	| [number, number, number, number]67	| [number, number, number, number, number];68 69export interface ExistingDecodedSourceMap {70	file?: string | undefined;71	readonly mappings: SourceMapSegment[][];72	names: string[];73	sourceRoot?: string | undefined;74	sources: string[];75	sourcesContent?: string[] | undefined;76	version: number;77	x_google_ignoreList?: number[] | undefined;78}79 80export interface ExistingRawSourceMap {81	file?: string | undefined;82	mappings: string;83	names: string[];84	sourceRoot?: string | undefined;85	sources: string[];86	sourcesContent?: string[] | undefined;87	version: number;88	x_google_ignoreList?: number[] | undefined;89}90 91export type DecodedSourceMapOrMissing =92	| {93			missing: true;94			plugin: string;95	  }96	| (ExistingDecodedSourceMap & { missing?: false | undefined });97 98export interface SourceMap {99	file: string;100	mappings: string;101	names: string[];102	sources: string[];103	sourcesContent?: string[] | undefined;104	version: number;105	debugId?: string | undefined;106	toString(): string;107	toUrl(): string;108}109 110export type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };111 112interface ModuleOptions {113	attributes: Record<string, string>;114	meta: CustomPluginOptions;115	moduleSideEffects: boolean | 'no-treeshake';116	syntheticNamedExports: boolean | string;117}118 119export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {120	ast?: ProgramNode | undefined;121	code: string;122	map?: SourceMapInput | undefined;123}124 125export interface TransformModuleJSON {126	ast?: ProgramNode | undefined;127	code: string;128	safeVariableNames: Record<string, string> | null;129	// note if plugins use new this.cache to opt-out auto transform cache130	customTransformCache: boolean;131	originalCode: string;132	originalSourcemap: ExistingDecodedSourceMap | null;133	sourcemapChain: DecodedSourceMapOrMissing[];134	transformDependencies: string[];135}136 137export interface ModuleJSON extends TransformModuleJSON, ModuleOptions {138	safeVariableNames: Record<string, string> | null;139	ast: ProgramNode;140	dependencies: string[];141	id: string;142	resolvedIds: ResolvedIdMap;143	transformFiles: EmittedFile[] | undefined;144}145 146export interface PluginCache {147	delete(id: string): boolean;148	get<T = any>(id: string): T;149	has(id: string): boolean;150	set<T = any>(id: string, value: T): void;151}152 153export type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;154 155export interface MinimalPluginContext {156	debug: LoggingFunction;157	error: (error: RollupError | string) => never;158	info: LoggingFunction;159	meta: PluginContextMeta;160	warn: LoggingFunction;161}162 163export interface EmittedAsset {164	fileName?: string | undefined;165	name?: string | undefined;166	needsCodeReference?: boolean | undefined;167	originalFileName?: string | null | undefined;168	source?: string | Uint8Array | undefined;169	type: 'asset';170}171 172export interface EmittedChunk {173	fileName?: string | undefined;174	id: string;175	implicitlyLoadedAfterOneOf?: string[] | undefined;176	importer?: string | undefined;177	name?: string | undefined;178	preserveSignature?: PreserveEntrySignaturesOption | undefined;179	type: 'chunk';180}181 182export interface EmittedPrebuiltChunk {183	code: string;184	exports?: string[] | undefined;185	fileName: string;186	map?: SourceMap | undefined;187	sourcemapFileName?: string | undefined;188	type: 'prebuilt-chunk';189}190 191export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;192 193export type EmitFile = (emittedFile: EmittedFile) => string;194 195export interface ModuleInfo extends ModuleOptions {196	ast: ProgramNode | null;197	code: string | null;198	dynamicImporters: readonly string[];199	dynamicallyImportedIdResolutions: readonly ResolvedId[];200	dynamicallyImportedIds: readonly string[];201	exportedBindings: Record<string, string[]> | null;202	exports: string[] | null;203	safeVariableNames: Record<string, string> | null;204	hasDefaultExport: boolean | null;205	id: string;206	implicitlyLoadedAfterOneOf: readonly string[];207	implicitlyLoadedBefore: readonly string[];208	importedIdResolutions: readonly ResolvedId[];209	importedIds: readonly string[];210	importers: readonly string[];211	isEntry: boolean;212	isExternal: boolean;213	isIncluded: boolean | null;214}215 216export type GetModuleInfo = (moduleId: string) => ModuleInfo | null;217 218// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style -- this is an interface so that it can be extended by plugins219export interface CustomPluginOptions {220	[plugin: string]: any;221}222 223type LoggingFunctionWithPosition = (224	log: RollupLog | string | (() => RollupLog | string),225	pos?: number | { column: number; line: number }226) => void;227 228export type ParseAst = (229	input: string,230	options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean }231) => ProgramNode;232 233// declare AbortSignal here for environments without DOM lib or @types/node234declare global {235	// eslint-disable-next-line @typescript-eslint/no-empty-object-type236	interface AbortSignal {}237}238 239export type ParseAstAsync = (240	input: string,241	options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean; signal?: AbortSignal }242) => Promise<ProgramNode>;243 244export interface PluginContext extends MinimalPluginContext {245	addWatchFile: (id: string) => void;246	cache: PluginCache;247	debug: LoggingFunction;248	emitFile: EmitFile;249	error: (error: RollupError | string) => never;250	fs: RollupFsModule;251	getFileName: (fileReferenceId: string) => string;252	getModuleIds: () => IterableIterator<string>;253	getModuleInfo: GetModuleInfo;254	getWatchFiles: () => string[];255	info: LoggingFunction;256	load: (257		options: { id: string; resolveDependencies?: boolean } & Partial<PartialNull<ModuleOptions>>258	) => Promise<ModuleInfo>;259	parse: ParseAst;260	resolve: (261		source: string,262		importer?: string,263		options?: {264			importerAttributes?: Record<string, string>;265			attributes?: Record<string, string>;266			custom?: CustomPluginOptions;267			isEntry?: boolean;268			skipSelf?: boolean;269		}270	) => Promise<ResolvedId | null>;271	setAssetSource: (assetReferenceId: string, source: string | Uint8Array) => void;272	warn: LoggingFunction;273}274 275export interface PluginContextMeta {276	rollupVersion: string;277	watchMode: boolean;278}279 280export type StringOrRegExp = string | RegExp;281 282export type StringFilter<Value = StringOrRegExp> =283	| MaybeArray<Value>284	| {285			include?: MaybeArray<Value> | undefined;286			exclude?: MaybeArray<Value> | undefined;287	  };288 289export interface HookFilter {290	id?: StringFilter | undefined;291	code?: StringFilter | undefined;292}293 294export interface ResolvedId extends ModuleOptions {295	external: boolean | 'absolute';296	id: string;297	resolvedBy: string;298}299 300export type ResolvedIdMap = Record<string, ResolvedId>;301 302export interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {303	external?: boolean | 'absolute' | 'relative' | undefined;304	id: string;305	resolvedBy?: string | undefined;306}307 308export type ResolveIdResult = string | NullValue | false | PartialResolvedId;309 310export type ResolveIdResultWithoutNullValue = string | false | PartialResolvedId;311 312export type ResolveIdHook = (313	this: PluginContext,314	source: string,315	importer: string | undefined,316	options: {317		attributes: Record<string, string>;318		custom?: CustomPluginOptions;319		importerAttributes?: Record<string, string> | undefined;320		isEntry: boolean;321	}322) => ResolveIdResult;323 324export type ShouldTransformCachedModuleHook = (325	this: PluginContext,326	options: {327		ast: ProgramNode;328		attributes: Record<string, string>;329		code: string;330		id: string;331		meta: CustomPluginOptions;332		moduleSideEffects: boolean | 'no-treeshake';333		resolvedSources: ResolvedIdMap;334		syntheticNamedExports: boolean | string;335	}336) => boolean | NullValue;337 338export type IsExternal = (339	source: string,340	importer: string | undefined,341	isResolved: boolean342) => boolean;343 344export type HasModuleSideEffects = (id: string, external: boolean) => boolean;345 346export type LoadResult = SourceDescription | string | NullValue;347 348export type LoadHook = (349	this: PluginContext,350	id: string,351	// temporarily marked as optional for better Vite type-compatibility352	options?:353		| {354				// unused, temporarily added for better Vite type-compatibility355				ssr?: boolean | undefined;356				// temporarily marked as optional for better Vite type-compatibility357				attributes?: Record<string, string>;358		  }359		| undefined360) => LoadResult;361 362export interface TransformPluginContext extends PluginContext {363	debug: LoggingFunctionWithPosition;364	error: (error: RollupError | string, pos?: number | { column: number; line: number }) => never;365	getCombinedSourcemap: () => SourceMap;366	info: LoggingFunctionWithPosition;367	warn: LoggingFunctionWithPosition;368}369 370export type TransformResult = string | NullValue | Partial<SourceDescription>;371 372export type TransformHook = (373	this: TransformPluginContext,374	code: string,375	id: string,376	// temporarily marked as optional for better Vite type-compatibility377	options?:378		| {379				// unused, temporarily added for better Vite type-compatibility380				ssr?: boolean | undefined;381				// temporarily marked as optional for better Vite type-compatibility382				attributes?: Record<string, string>;383		  }384		| undefined385) => TransformResult;386 387export type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;388 389export type RenderChunkHook = (390	this: PluginContext,391	code: string,392	chunk: RenderedChunk,393	options: NormalizedOutputOptions,394	meta: { chunks: Record<string, RenderedChunk> }395) => { code: string; map?: SourceMapInput } | string | NullValue;396 397export type ResolveDynamicImportHook = (398	this: PluginContext,399	specifier: string | AstNode,400	importer: string,401	options: { attributes: Record<string, string>; importerAttributes: Record<string, string> }402) => ResolveIdResult;403 404export type ResolveImportMetaHook = (405	this: PluginContext,406	property: string | null,407	options: {408		attributes: Record<string, string>;409		chunkId: string;410		format: InternalModuleFormat;411		moduleId: string;412	}413) => string | NullValue;414 415export type ResolveFileUrlHook = (416	this: PluginContext,417	options: {418		attributes: Record<string, string>;419		chunkId: string;420		fileName: string;421		format: InternalModuleFormat;422		moduleId: string;423		referenceId: string;424		relativePath: string;425	}426) => string | NullValue;427 428export type AddonHookFunction = (429	this: PluginContext,430	chunk: RenderedChunk431) => string | Promise<string>;432export type AddonHook = string | AddonHookFunction;433 434export type ChangeEvent = 'create' | 'update' | 'delete';435export type WatchChangeHook = (436	this: PluginContext,437	id: string,438	change: { event: ChangeEvent }439) => void;440 441/**442 * use this type for plugin annotation443 * @example444 * ```ts445 * interface Options {446 * ...447 * }448 * const myPlugin: PluginImpl<Options> = (options = {}) => { ... }449 * ```450 */451export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;452 453export type OutputBundle = Record<string, OutputAsset | OutputChunk>;454 455export type PreRenderedChunkWithFileName = PreRenderedChunk & { fileName: string };456 457export interface ImportedInternalChunk {458	type: 'internal';459	fileName: string;460	resolvedImportPath: string;461	chunk: PreRenderedChunk;462}463 464export interface ImportedExternalChunk {465	type: 'external';466	fileName: string;467	resolvedImportPath: string;468}469 470export type DynamicImportTargetChunk = ImportedInternalChunk | ImportedExternalChunk;471 472export interface FunctionPluginHooks {473	augmentChunkHash: (this: PluginContext, chunk: RenderedChunk) => string | void;474	buildEnd: (this: PluginContext, error?: Error) => void;475	buildStart: (this: PluginContext, options: NormalizedInputOptions) => void;476	closeBundle: (this: PluginContext, error?: Error) => void;477	closeWatcher: (this: PluginContext) => void;478	generateBundle: (479		this: PluginContext,480		options: NormalizedOutputOptions,481		bundle: OutputBundle,482		isWrite: boolean483	) => void;484	load: LoadHook;485	moduleParsed: ModuleParsedHook;486	onLog: (this: MinimalPluginContext, level: LogLevel, log: RollupLog) => boolean | NullValue;487	options: (this: MinimalPluginContext, options: InputOptions) => InputOptions | NullValue;488	outputOptions: (this: PluginContext, options: OutputOptions) => OutputOptions | NullValue;489	renderChunk: RenderChunkHook;490	renderDynamicImport: (491		this: PluginContext,492		options: {493			customResolution: string | null;494			format: InternalModuleFormat;495			moduleId: string;496			targetModuleId: string | null;497			chunk: PreRenderedChunkWithFileName;498			targetChunk: PreRenderedChunkWithFileName | null;499			getTargetChunkImports: () => DynamicImportTargetChunk[] | null;500			targetModuleAttributes: Record<string, string>;501		}502	) => { left: string; right: string } | NullValue;503	renderError: (this: PluginContext, error?: Error) => void;504	renderStart: (505		this: PluginContext,506		outputOptions: NormalizedOutputOptions,507		inputOptions: NormalizedInputOptions508	) => void;509	resolveDynamicImport: ResolveDynamicImportHook;510	resolveFileUrl: ResolveFileUrlHook;511	resolveId: ResolveIdHook;512	resolveImportMeta: ResolveImportMetaHook;513	shouldTransformCachedModule: ShouldTransformCachedModuleHook;514	transform: TransformHook;515	watchChange: WatchChangeHook;516	writeBundle: (517		this: PluginContext,518		options: NormalizedOutputOptions,519		bundle: OutputBundle520	) => void;521}522 523export type OutputPluginHooks =524	| 'augmentChunkHash'525	| 'generateBundle'526	| 'outputOptions'527	| 'renderChunk'528	| 'renderDynamicImport'529	| 'renderError'530	| 'renderStart'531	| 'resolveFileUrl'532	| 'resolveImportMeta'533	| 'writeBundle';534 535export type InputPluginHooks = Exclude<keyof FunctionPluginHooks, OutputPluginHooks>;536 537export type SyncPluginHooks =538	| 'augmentChunkHash'539	| 'onLog'540	| 'outputOptions'541	| 'renderDynamicImport'542	| 'resolveFileUrl'543	| 'resolveImportMeta';544 545export type AsyncPluginHooks = Exclude<keyof FunctionPluginHooks, SyncPluginHooks>;546 547export type FirstPluginHooks =548	| 'load'549	| 'renderDynamicImport'550	| 'resolveDynamicImport'551	| 'resolveFileUrl'552	| 'resolveId'553	| 'resolveImportMeta'554	| 'shouldTransformCachedModule';555 556export type SequentialPluginHooks =557	| 'augmentChunkHash'558	| 'generateBundle'559	| 'onLog'560	| 'options'561	| 'outputOptions'562	| 'renderChunk'563	| 'transform';564 565export type ParallelPluginHooks = Exclude<566	keyof FunctionPluginHooks | AddonHooks,567	FirstPluginHooks | SequentialPluginHooks568>;569 570export type AddonHooks = 'banner' | 'footer' | 'intro' | 'outro';571 572type MakeAsync<Function_> = Function_ extends (573	this: infer This,574	...parameters: infer Arguments575) => infer Return576	? (this: This, ...parameters: Arguments) => Return | Promise<Return>577	: never;578 579// eslint-disable-next-line @typescript-eslint/no-empty-object-type580export type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);581 582export type HookFilterExtension<K extends keyof FunctionPluginHooks> = K extends 'transform'583	? { filter?: HookFilter | undefined }584	: K extends 'load'585		? { filter?: Pick<HookFilter, 'id'> | undefined }586		: K extends 'resolveId'587			? { filter?: { id?: StringFilter<RegExp> | undefined } } | undefined588			: // eslint-disable-next-line @typescript-eslint/no-empty-object-type589				{};590 591export type PluginHooks = {592	[K in keyof FunctionPluginHooks]: ObjectHook<593		K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K],594		// eslint-disable-next-line @typescript-eslint/no-empty-object-type595		HookFilterExtension<K> & (K extends ParallelPluginHooks ? { sequential?: boolean } : {})596	>;597};598 599export interface OutputPlugin600	extends601		Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,602		Partial<Record<AddonHooks, ObjectHook<AddonHook>>> {603	cacheKey?: string | undefined;604	name: string;605	version?: string | undefined;606}607 608export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {609	// for inter-plugin communication610	api?: A | undefined;611}612 613export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';614 615export type NormalizedJsxOptions =616	| NormalizedJsxPreserveOptions617	| NormalizedJsxClassicOptions618	| NormalizedJsxAutomaticOptions;619 620interface NormalizedJsxPreserveOptions {621	factory: string | null;622	fragment: string | null;623	importSource: string | null;624	mode: 'preserve';625}626 627interface NormalizedJsxClassicOptions {628	factory: string;629	fragment: string;630	importSource: string | null;631	mode: 'classic';632}633 634interface NormalizedJsxAutomaticOptions {635	factory: string;636	importSource: string | null;637	jsxImportSource: string;638	mode: 'automatic';639}640 641export type JsxOptions = Partial<NormalizedJsxOptions> & {642	preset?: JsxPreset | undefined;643};644 645export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';646 647export interface NormalizedTreeshakingOptions {648	annotations: boolean;649	correctVarValueBeforeDeclaration: boolean;650	manualPureFunctions: readonly string[];651	moduleSideEffects: HasModuleSideEffects;652	propertyReadSideEffects: boolean | 'always';653	tryCatchDeoptimization: boolean;654	unknownGlobalSideEffects: boolean;655}656 657export interface TreeshakingOptions extends Partial<658	Omit<NormalizedTreeshakingOptions, 'moduleSideEffects'>659> {660	moduleSideEffects?: ModuleSideEffectsOption | undefined;661	preset?: TreeshakingPreset | undefined;662}663 664interface ManualChunkMeta {665	getModuleIds: () => IterableIterator<string>;666	getModuleInfo: GetModuleInfo;667}668 669export type GetManualChunk = (id: string, meta: ManualChunkMeta) => string | NullValue;670 671export type ExternalOption =672	| (string | RegExp)[]673	| string674	| RegExp675	| ((source: string, importer: string | undefined, isResolved: boolean) => boolean | NullValue);676 677export type GlobalsOption = Record<string, string> | ((name: string) => string);678 679export type InputOption = string | string[] | Record<string, string>;680 681export type ManualChunksOption = Record<string, string[]> | GetManualChunk;682 683export type LogHandlerWithDefault = (684	level: LogLevel,685	log: RollupLog,686	defaultHandler: LogOrStringHandler687) => void;688 689export type LogOrStringHandler = (level: LogLevel | 'error', log: RollupLog | string) => void;690 691export type LogHandler = (level: LogLevel, log: RollupLog) => void;692 693export type ModuleSideEffectsOption = boolean | 'no-external' | string[] | HasModuleSideEffects;694 695export type PreserveEntrySignaturesOption = false | 'strict' | 'allow-extension' | 'exports-only';696 697export type SourcemapPathTransformOption = (698	relativeSourcePath: string,699	sourcemapPath: string700) => string;701 702export type SourcemapIgnoreListOption = (703	relativeSourcePath: string,704	sourcemapPath: string705) => boolean;706 707export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;708 709export interface InputOptions {710	cache?: boolean | RollupCache | undefined;711	context?: string | undefined;712	experimentalCacheExpiry?: number | undefined;713	experimentalLogSideEffects?: boolean | undefined;714	external?: ExternalOption | undefined;715	fs?: RollupFsModule | undefined;716	input?: InputOption | undefined;717	jsx?: false | JsxPreset | JsxOptions | undefined;718	logLevel?: LogLevelOption | undefined;719	makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource' | undefined;720	maxParallelFileOps?: number | undefined;721	moduleContext?: ((id: string) => string | NullValue) | Record<string, string> | undefined;722	onLog?: LogHandlerWithDefault | undefined;723	onwarn?: WarningHandlerWithDefault | undefined;724	perf?: boolean | undefined;725	plugins?: InputPluginOption | undefined;726	preserveEntrySignatures?: PreserveEntrySignaturesOption | undefined;727	preserveSymlinks?: boolean | undefined;728	shimMissingExports?: boolean | undefined;729	strictDeprecations?: boolean | undefined;730	treeshake?: boolean | TreeshakingPreset | TreeshakingOptions | undefined;731	watch?: WatcherOptions | false | undefined;732}733 734export interface InputOptionsWithPlugins extends InputOptions {735	plugins: Plugin[];736}737 738export interface NormalizedInputOptions {739	cache: false | undefined | RollupCache;740	context: string;741	experimentalCacheExpiry: number;742	experimentalLogSideEffects: boolean;743	external: IsExternal;744	fs: RollupFsModule;745	input: string[] | Record<string, string>;746	jsx: false | NormalizedJsxOptions;747	logLevel: LogLevelOption;748	makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource';749	maxParallelFileOps: number;750	moduleContext: (id: string) => string;751	onLog: LogHandler;752	perf: boolean;753	plugins: Plugin[];754	preserveEntrySignatures: PreserveEntrySignaturesOption;755	preserveSymlinks: boolean;756	shimMissingExports: boolean;757	strictDeprecations: boolean;758	treeshake: false | NormalizedTreeshakingOptions;759}760 761export type InternalModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd';762export type ImportAttributesKey = 'with' | 'assert';763 764export type ModuleFormat = InternalModuleFormat | 'commonjs' | 'esm' | 'module' | 'systemjs';765 766type GeneratedCodePreset = 'es5' | 'es2015';767 768interface NormalizedGeneratedCodeOptions {769	arrowFunctions: boolean;770	constBindings: boolean;771	objectShorthand: boolean;772	reservedNamesAsProps: boolean;773	symbols: boolean;774}775 776interface GeneratedCodeOptions extends Partial<NormalizedGeneratedCodeOptions> {777	preset?: GeneratedCodePreset | undefined;778}779 780export type OptionsPaths = Record<string, string> | ((id: string) => string);781 782export type InteropType = 'compat' | 'auto' | 'esModule' | 'default' | 'defaultOnly';783 784export type GetInterop = (id: string | null) => InteropType;785 786export type AmdOptions = (787	| {788			autoId?: false | undefined;789			id: string;790	  }791	| {792			autoId: true;793			basePath?: string | undefined;794			id?: undefined | undefined;795	  }796	| {797			autoId?: false | undefined;798			id?: undefined | undefined;799	  }800) & {801	define?: string | undefined;802	forceJsExtensionForImports?: boolean | undefined;803};804 805export type NormalizedAmdOptions = (806	| {807			autoId: false;808			id?: string | undefined;809	  }810	| {811			autoId: true;812			basePath: string;813	  }814) & {815	define: string;816	forceJsExtensionForImports: boolean;817};818 819type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;820 821type OutputPluginOption = MaybePromise<OutputPlugin | NullValue | false | OutputPluginOption[]>;822 823type HashCharacters = 'base64' | 'base36' | 'hex';824 825export interface OutputOptions {826	amd?: AmdOptions | undefined;827	assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string) | undefined;828	banner?: string | AddonFunction | undefined;829	chunkFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;830	compact?: boolean | undefined;831	// only required for bundle.write832	dir?: string | undefined;833	dynamicImportInCjs?: boolean | undefined;834	entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;835	esModule?: boolean | 'if-default-prop' | undefined;836	experimentalMinChunkSize?: number | undefined;837	exports?: 'default' | 'named' | 'none' | 'auto' | undefined;838	extend?: boolean | undefined;839	/** @deprecated Use "externalImportAttributes" instead. */840	externalImportAssertions?: boolean | undefined;841	externalImportAttributes?: boolean | undefined;842	externalLiveBindings?: boolean | undefined;843	// only required for bundle.write844	file?: string | undefined;845	footer?: string | AddonFunction | undefined;846	format?: ModuleFormat | undefined;847	freeze?: boolean | undefined;848	generatedCode?: GeneratedCodePreset | GeneratedCodeOptions | undefined;849	globals?: GlobalsOption | undefined;850	hashCharacters?: HashCharacters | undefined;851	hoistTransitiveImports?: boolean | undefined;852	importAttributesKey?: ImportAttributesKey | undefined;853	indent?: string | boolean | undefined;854	inlineDynamicImports?: boolean | undefined;855	interop?: InteropType | GetInterop | undefined;856	intro?: string | AddonFunction | undefined;857	manualChunks?: ManualChunksOption | undefined;858	minifyInternalExports?: boolean | undefined;859	name?: string | undefined;860	noConflict?: boolean | undefined;861	/** @deprecated This will be the new default in Rollup 5. */862	onlyExplicitManualChunks?: boolean | undefined;863	outro?: string | AddonFunction | undefined;864	paths?: OptionsPaths | undefined;865	plugins?: OutputPluginOption | undefined;866	preserveModules?: boolean | undefined;867	preserveModulesRoot?: string | undefined;868	reexportProtoFromExternal?: boolean | undefined;869	sanitizeFileName?: boolean | ((fileName: string) => string) | undefined;870	sourcemap?: boolean | 'inline' | 'hidden' | undefined;871	sourcemapBaseUrl?: string | undefined;872	sourcemapExcludeSources?: boolean | undefined;873	sourcemapFile?: string | undefined;874	sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;875	sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined;876	sourcemapPathTransform?: SourcemapPathTransformOption | undefined;877	sourcemapDebugIds?: boolean | undefined;878	strict?: boolean | undefined;879	systemNullSetters?: boolean | undefined;880	validate?: boolean | undefined;881	virtualDirname?: string | undefined;882}883 884export interface NormalizedOutputOptions {885	amd: NormalizedAmdOptions;886	assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string);887	banner: AddonFunction;888	chunkFileNames: string | ((chunkInfo: PreRenderedChunk) => string);889	compact: boolean;890	dir: string | undefined;891	dynamicImportInCjs: boolean;892	entryFileNames: string | ((chunkInfo: PreRenderedChunk) => string);893	esModule: boolean | 'if-default-prop';894	experimentalMinChunkSize: number;895	exports: 'default' | 'named' | 'none' | 'auto';896	extend: boolean;897	/** @deprecated Use "externalImportAttributes" instead. */898	externalImportAssertions: boolean;899	externalImportAttributes: boolean;900	externalLiveBindings: boolean;901	file: string | undefined;902	footer: AddonFunction;903	format: InternalModuleFormat;904	freeze: boolean;905	generatedCode: NormalizedGeneratedCodeOptions;906	globals: GlobalsOption;907	hashCharacters: HashCharacters;908	hoistTransitiveImports: boolean;909	importAttributesKey: ImportAttributesKey;910	indent: true | string;911	inlineDynamicImports: boolean;912	interop: GetInterop;913	intro: AddonFunction;914	manualChunks: ManualChunksOption;915	minifyInternalExports: boolean;916	name: string | undefined;917	noConflict: boolean;918	onlyExplicitManualChunks: boolean;919	outro: AddonFunction;920	paths: OptionsPaths;921	plugins: OutputPlugin[];922	preserveModules: boolean;923	preserveModulesRoot: string | undefined;924	reexportProtoFromExternal: boolean;925	sanitizeFileName: (fileName: string) => string;926	sourcemap: boolean | 'inline' | 'hidden';927	sourcemapBaseUrl: string | undefined;928	sourcemapExcludeSources: boolean;929	sourcemapFile: string | undefined;930	sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;931	sourcemapIgnoreList: SourcemapIgnoreListOption;932	sourcemapPathTransform: SourcemapPathTransformOption | undefined;933	sourcemapDebugIds: boolean;934	strict: boolean;935	systemNullSetters: boolean;936	validate: boolean;937	virtualDirname: string;938}939 940export type WarningHandlerWithDefault = (941	warning: RollupLog,942	defaultHandler: LoggingFunction943) => void;944 945export type SerializedTimings = Record<string, [number, number, number]>;946 947export interface PreRenderedAsset {948	/** @deprecated Use "names" instead. */949	name: string | undefined;950	names: string[];951	/** @deprecated Use "originalFileNames" instead. */952	originalFileName: string | null;953	originalFileNames: string[];954	source: string | Uint8Array;955	type: 'asset';956}957 958export interface OutputAsset extends PreRenderedAsset {959	fileName: string;960	needsCodeReference: boolean;961}962 963export interface RenderedModule {964	readonly code: string | null;965	originalLength: number;966	removedExports: string[];967	renderedExports: string[];968	renderedLength: number;969}970 971export interface PreRenderedChunk {972	exports: string[];973	facadeModuleId: string | null;974	isDynamicEntry: boolean;975	isEntry: boolean;976	isImplicitEntry: boolean;977	moduleIds: string[];978	name: string;979	type: 'chunk';980}981 982export interface RenderedChunk extends PreRenderedChunk {983	dynamicImports: string[];984	fileName: string;985	implicitlyLoadedBefore: string[];986	importedBindings: Record<string, string[]>;987	imports: string[];988	modules: Record<string, RenderedModule>;989	referencedFiles: string[];990}991 992export interface OutputChunk extends RenderedChunk {993	code: string;994	map: SourceMap | null;995	sourcemapFileName: string | null;996	preliminaryFileName: string;997}998 999export type SerializablePluginCache = Record<string, [number, any]>;1000 1001export interface RollupCache {1002	modules: ModuleJSON[];1003	plugins?: Record<string, SerializablePluginCache>;1004}1005 1006export interface RollupOutput {1007	output: [OutputChunk, ...(OutputChunk | OutputAsset)[]];1008}1009 1010export interface RollupBuild {1011	cache: RollupCache | undefined;1012	close: () => Promise<void>;1013	closed: boolean;1014	[Symbol.asyncDispose](): Promise<void>;1015	generate: (outputOptions: OutputOptions) => Promise<RollupOutput>;1016	getTimings?: (() => SerializedTimings) | undefined;1017	watchFiles: string[];1018	write: (options: OutputOptions) => Promise<RollupOutput>;1019}1020 1021export interface RollupOptions extends InputOptions {1022	// This is included for compatibility with config files but ignored by rollup.rollup1023	output?: OutputOptions | OutputOptions[] | undefined;1024}1025 1026export interface MergedRollupOptions extends InputOptionsWithPlugins {1027	output: OutputOptions[];1028}1029 1030export function rollup(options: RollupOptions): Promise<RollupBuild>;1031 1032export interface ChokidarOptions {1033	alwaysStat?: boolean | undefined;1034	atomic?: boolean | number | undefined;1035	awaitWriteFinish?:1036		| {1037				pollInterval?: number | undefined;1038				stabilityThreshold?: number | undefined;1039		  }1040		| boolean1041		| undefined;1042	binaryInterval?: number | undefined;1043	cwd?: string | undefined;1044	depth?: number | undefined;1045	disableGlobbing?: boolean | undefined;1046	followSymlinks?: boolean | undefined;1047	ignoreInitial?: boolean | undefined;1048	ignorePermissionErrors?: boolean | undefined;1049	ignored?: any | undefined;1050	interval?: number | undefined;1051	persistent?: boolean | undefined;1052	useFsEvents?: boolean | undefined;1053	usePolling?: boolean | undefined;1054}1055 1056export type RollupWatchHooks = 'onError' | 'onStart' | 'onBundleStart' | 'onBundleEnd' | 'onEnd';1057 1058export interface WatcherOptions {1059	allowInputInsideOutputPath?: boolean | undefined;1060	buildDelay?: number | undefined;1061	chokidar?: ChokidarOptions | undefined;1062	clearScreen?: boolean | undefined;1063	exclude?: string | RegExp | (string | RegExp)[] | undefined;1064	include?: string | RegExp | (string | RegExp)[] | undefined;1065	skipWrite?: boolean | undefined;1066	onInvalidate?: ((id: string) => void) | undefined;1067}1068 1069export interface RollupWatchOptions extends InputOptions {1070	output?: OutputOptions | OutputOptions[] | undefined;1071	watch?: WatcherOptions | false | undefined;1072}1073 1074export type AwaitedEventListener<1075	T extends Record<string, (...parameters: any) => any>,1076	K extends keyof T1077> = (...parameters: Parameters<T[K]>) => void | Promise<void>;1078 1079export interface AwaitingEventEmitter<T extends Record<string, (...parameters: any) => any>> {1080	close(): Promise<void>;1081	emit<K extends keyof T>(event: K, ...parameters: Parameters<T[K]>): Promise<unknown>;1082	/**1083	 * Removes an event listener.1084	 */1085	off<K extends keyof T>(event: K, listener: AwaitedEventListener<T, K>): this;1086	/**1087	 * Registers an event listener that will be awaited before Rollup continues.1088	 * All listeners will be awaited in parallel while rejections are tracked via1089	 * Promise.all.1090	 */1091	on<K extends keyof T>(event: K, listener: AwaitedEventListener<T, K>): this;1092	/**1093	 * Registers an event listener that will be awaited before Rollup continues.1094	 * All listeners will be awaited in parallel while rejections are tracked via1095	 * Promise.all.1096	 * Listeners are removed automatically when removeListenersForCurrentRun is1097	 * called, which happens automatically after each run.1098	 */1099	onCurrentRun<K extends keyof T>(1100		event: K,1101		listener: (...parameters: Parameters<T[K]>) => Promise<ReturnType<T[K]>>1102	): this;1103	removeAllListeners(): this;1104	removeListenersForCurrentRun(): this;1105}1106 1107export type RollupWatcherEvent =1108	| { code: 'START' }1109	| { code: 'BUNDLE_START'; input?: InputOption | undefined; output: readonly string[] }1110	| {1111			code: 'BUNDLE_END';1112			duration: number;1113			input?: InputOption | undefined;1114			output: readonly string[];1115			result: RollupBuild;1116	  }1117	| { code: 'END' }1118	| { code: 'ERROR'; error: RollupError; result: RollupBuild | null };1119 1120export type RollupWatcher = AwaitingEventEmitter<{1121	change: (id: string, change: { event: ChangeEvent }) => void;1122	close: () => void;1123	event: (event: RollupWatcherEvent) => void;1124	restart: () => void;1125}>;1126 1127export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;1128 1129interface AstNodeLocation {1130	end: number;1131	start: number;1132}1133 1134type OmittedEstreeKeys =1135	| 'loc'1136	| 'range'1137	| 'leadingComments'1138	| 'trailingComments'1139	| 'innerComments'1140	| 'comments';1141type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;1142 1143type ProgramNode = RollupAstNode<estree.Program>;1144export type AstNode = RollupAstNode<estree.Node>;1145 1146export function defineConfig(options: RollupOptions): RollupOptions;1147export function defineConfig(options: RollupOptions[]): RollupOptions[];1148export function defineConfig(optionsFunction: RollupOptionsFunction): RollupOptionsFunction;1149 1150export type RollupOptionsFunction = (1151	commandLineArguments: Record<string, any>1152) => MaybePromise<RollupOptions | RollupOptions[]>;1153 1154export interface RollupFsModule {1155	appendFile(1156		path: string,1157		data: string | Uint8Array,1158		options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number }1159	): Promise<void>;1160 1161	copyFile(source: string, destination: string, mode?: string | number): Promise<void>;1162 1163	mkdir(path: string, options?: { recursive?: boolean; mode?: string | number }): Promise<void>;1164 1165	mkdtemp(prefix: string): Promise<string>;1166 1167	readdir(path: string, options?: { withFileTypes?: false }): Promise<string[]>;1168	readdir(path: string, options?: { withFileTypes: true }): Promise<RollupDirectoryEntry[]>;1169 1170	readFile(1171		path: string,1172		options?: { encoding?: null; flag?: string | number; signal?: AbortSignal }1173	): Promise<Uint8Array>;1174	readFile(1175		path: string,1176		options?: { encoding: BufferEncoding; flag?: string | number; signal?: AbortSignal }1177	): Promise<string>;1178 1179	realpath(path: string): Promise<string>;1180 1181	rename(oldPath: string, newPath: string): Promise<void>;1182 1183	rmdir(path: string, options?: { recursive?: boolean }): Promise<void>;1184 1185	stat(path: string): Promise<RollupFileStats>;1186 1187	lstat(path: string): Promise<RollupFileStats>;1188 1189	unlink(path: string): Promise<void>;1190 1191	writeFile(1192		path: string,1193		data: string | Uint8Array,1194		options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number }1195	): Promise<void>;1196}1197 1198export type BufferEncoding =1199	| 'ascii'1200	| 'utf8'

Showing the first 1,200 of 1226 lines. Download the file for the rest.

Brunobkr/llama.cpp_AlgMor24_github · Team Ai