File size: 2,109 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import type * as Compiler from "svelte/compiler";
export type SvelteConfig = {
    compilerOptions?: Compiler.CompileOptions;
    extensions?: string[];
    kit?: KitConfig;
    preprocess?: unknown;
    vitePlugin?: unknown;
    onwarn?: (warning: Compiler.Warning, defaultHandler: (warning: Compiler.Warning) => void) => void;
    [key: string]: unknown;
};
interface KitConfig {
    adapter?: unknown;
    alias?: Record<string, string>;
    appDir?: string;
    csp?: {
        mode?: "hash" | "nonce" | "auto";
        directives?: unknown;
        reportOnly?: unknown;
    };
    csrf?: {
        checkOrigin?: boolean;
    };
    embedded?: boolean;
    env?: {
        dir?: string;
        publicPrefix?: string;
        privatePrefix?: string;
    };
    files?: {
        assets?: string;
        hooks?: {
            client?: string;
            server?: string;
            universal?: string;
        };
        lib?: string;
        params?: string;
        routes?: string;
        serviceWorker?: string;
        appTemplate?: string;
        errorTemplate?: string;
    };
    inlineStyleThreshold?: number;
    moduleExtensions?: string[];
    outDir?: string;
    output?: {
        preloadStrategy?: "modulepreload" | "preload-js" | "preload-mjs";
    };
    paths?: {
        assets?: "" | `http://${string}` | `https://${string}`;
        base?: "" | `/${string}`;
        relative?: boolean;
    };
    prerender?: {
        concurrency?: number;
        crawl?: boolean;
        entries?: ("*" | `/${string}`)[];
        handleHttpError?: unknown;
        handleMissingId?: unknown;
        handleEntryGeneratorMismatch?: unknown;
        origin?: string;
    };
    serviceWorker?: {
        register?: boolean;
        files?(filepath: string): boolean;
    };
    typescript?: {
        config?: (config: Record<string, any>) => Record<string, any> | void;
    };
    version?: {
        name?: string;
        pollInterval?: number;
    };
}
/**
 * Resolves svelte.config.
 */
export declare function resolveSvelteConfigFromOption(options: any): SvelteConfig | null;
export {};