export declare interface AssetGroup { cacheQueryOptions?: Pick; installMode?: 'prefetch' | 'lazy'; name: string; resources: { files?: Glob[]; urls?: Glob[]; }; updateMode?: 'prefetch' | 'lazy'; } export declare interface Config { appData?: {}; assetGroups?: AssetGroup[]; dataGroups?: DataGroup[]; index: string; navigationUrls?: string[]; } export declare interface DataGroup { cacheConfig: { maxSize: number; maxAge: Duration; timeout?: Duration; strategy?: 'freshness' | 'performance'; }; cacheQueryOptions?: Pick; name: string; urls: Glob[]; version?: number; } export declare type Duration = string; export declare interface Filesystem { hash(file: string): Promise; list(dir: string): Promise; read(file: string): Promise; write(file: string, contents: string): Promise; } export declare class Generator { readonly fs: Filesystem; constructor(fs: Filesystem, baseHref: string); process(config: Config): Promise; } export declare type Glob = string;