///
import { Context } from './context';
import * as ts from 'typescript';
export declare const IsWritable: {
[name: string]: boolean;
};
export declare const IsSearchable: {
[name: string]: boolean;
};
export interface WriterFileSystem {
existsSync: (path: string) => boolean;
mkdirpSync: (path: string) => void;
writeFileSync: (path: string, content: string | Buffer) => void;
}
export interface WriterOptions {
outDir: string;
fileSystem: WriterFileSystem;
gzip: boolean;
enableSearch: boolean;
}
export declare class Writer {
context: Context;
options: WriterOptions;
constructor(context: Context, opts?: Partial);
writeReflections(): void;
writeSources(): SerializedProgram;
}
export interface SerializedProgram {
tsconfig: {
compilerOptions: ts.CompilerOptions;
};
files: {
[fileName: string]: {
content: string;
};
};
}
export declare function createObject(arr: ReadonlyArray, key: (item: T) => [string, R]): {
[key: string]: R;
};
//# sourceMappingURL=writer.d.ts.map