export declare class Chain { private chain; private fallbackValue?; root?: string; option?: { pretty?: boolean; }; sourcePath?: string; constructor(root?: string); get action(): Promise; private saveTemp; modify(callback?: (io: unknown) => unknown): this; onFail(callback?: () => unknown): this; then(callback: (value: unknown) => unknown): Promise; catch(callback: (reason: unknown) => unknown): Promise; finally(callback: () => void): Promise; config(option: { pretty?: boolean; }): this; source(path: string, root?: string | undefined): this; output(path?: string | undefined, root?: string | undefined): this; encode(): this; decode(): this; logger(...message: unknown[]): this; }