import { RollupConfigPipe } from './types'; declare const _context: unique symbol; export declare type StackFrame = RollupConfigPipe; export interface IConfigContext { readonly cwd: string; readonly root: string; readonly stack: ReadonlyArray; readonly [_context]: true; } export declare const createContext: () => IConfigContext; declare type Diff = ({ [P in T]: P; } & { [P in U]: never; } & { [x: string]: never; })[T]; declare type Omit = Pick>; declare type Extension = Omit & Partial; export declare const createChildContext: (baseContext: TBase, modification: Extension) => Readonly; export declare const isContext: (o: any) => o is IConfigContext; export declare const withCwd: (context: T, cwd: string) => T; export declare const addStackFrame: (context: T, frame: RollupConfigPipe) => T; export {};