declare class CodeFactory { protected _args: string[] | undefined; protected options: HookCompileOptions | undefined; content(options: CodeFactoryContent): void; createContentPromiseDone(): () => string; createContentPromiseResult(): (result: any) => string; createContentAsyncDone(): () => string; createContentAsyncResult(): (result: any) => string; createContentAsyncError(): (err: any) => string; createContentSyncDone(): () => string; createContentSyncResult(): (result: any) => string; createContentSyncError(): (err: any) => string; create(options: HookCompileOptions): Function | undefined; setup(fns: any[], options: HookCompileOptions): void; /** * @param {{ type: "sync" | "promise" | "async", taps: Array, interceptors: Array }} options */ init(options: HookCompileOptions): void; deinit(): void; header(): string; needContext(): boolean; callTapPromise(tap: HooksTapsItem, tapIndex: number, onResult: CodeFactoryContent['onResult'], onError: CodeFactoryContent['onError'], onDone: false | (() => any)): string; generateCallTapAsyncCallback(tapIndex: number, onResult: CodeFactoryContent['onResult'], onError: CodeFactoryContent['onError'], onDone: false | (() => any)): string; callTapAsync(tap: HooksTapsItem, tapIndex: number, onResult: CodeFactoryContent['onResult'], onError: CodeFactoryContent['onError'], onDone: false | (() => any)): string; callTapSync(tap: HooksTapsItem, tapIndex: number, onResult: CodeFactoryContent['onResult'], onError: CodeFactoryContent['onError'], onDone: false | (() => any), rethrowIfPossible?: boolean): string; callTap(tapIndex: number, { onError, onResult, onDone, rethrowIfPossible }: Omit & { onDone: false | (() => any); }): string; callTapsSeries({ onError, onResult, resultReturns, onDone, doneReturns, rethrowIfPossible }: CodeFactoryContent): any; callTapsLooping({ onError, onDone, rethrowIfPossible }: CodeFactoryContent): any; callTapsParallel({ onError, onResult, onDone, rethrowIfPossible, onTap }: CodeFactoryContent & { onTap?: (...args: any[]) => any; }): any; args({ before, after }: { before?: string; after?: string; }): string; getTapFn(idx: number): string; getTap(idx: number): string; } export default CodeFactory;