summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/fs/loader.d.ts
blob: 6d590b716fb0faac0fc29a8149ebb79b11e01246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { FS } from './fs';
export interface LoaderOptions {
    fs: FS;
    extname: string;
    root: string[];
    partials: string[];
    layouts: string[];
    relativeReference: boolean;
}
export declare enum LookupType {
    Partials = "partials",
    Layouts = "layouts",
    Root = "root"
}
export declare class Loader {
    shouldLoadRelative: (referencedFile: string) => boolean;
    private options;
    private contains;
    constructor(options: LoaderOptions);
    lookup(file: string, type: LookupType, sync?: boolean, currentFile?: string): Generator<unknown, string, string>;
    candidates(file: string, dirs: string[], currentFile?: string, enforceRoot?: boolean): Generator<string, void, unknown>;
    private dirname;
    private lookupError;
}