import type { SupportedSvelteKitAdapters } from './detectAdapter'; import type { ResolvedKitConfig } from './kitConfig'; /** * The contents of a `svelte.config.js` file. SvelteKit 3 removed this file; it only exists in * SvelteKit 1 and 2, where all SvelteKit options are nested under `kit`. */ export type SvelteConfigFileContents = { kit?: ResolvedKitConfig; }; /** * Imports the svelte.config.js file and returns the config object. * The sveltekit plugins import the config in the same way. * See: https://github.com/sveltejs/kit/blob/master/packages/kit/src/core/config/index.js#L63 * * Only a fallback now - the config is read from the SvelteKit Vite plugin instead, and SvelteKit 3 * removed this file entirely (see `kitConfig.ts`). */ export declare function loadSvelteConfig(): Promise; /** * Reads a custom hooks directory from the SvelteKit config. In case no custom hooks * directory is specified, the default directory is returned. */ export declare function getHooksFileName(kitConfig: ResolvedKitConfig, hookType: 'client' | 'server'): string; /** The extensions an entry file given without one, like the hooks files, can have. */ export declare function getEntryFileExtensions(kitConfig: ResolvedKitConfig): string[]; /** * Matches the Vite module ids of SvelteKit entry files given without an extension, like the hooks files: the file with * one of SvelteKit's module extensions, or the `index` file of a directory by that name, which SvelteKit also accepts. */ export declare function makeEntryFileMatcher(kitConfig: ResolvedKitConfig, entryPaths: string[]): (id: string) => boolean; /** * Attempts to read a custom output directory that can be specified in the options * of a SvelteKit adapter. If no custom output directory is specified, the default * directory is returned. */ export declare function getAdapterOutputDir(kitConfig: ResolvedKitConfig, adapter: SupportedSvelteKitAdapters): Promise; //# sourceMappingURL=svelteConfig.d.ts.map