import { AnyOpts } from '../modify'; import { Chainable } from './chain'; export declare type ModifyApiFn = (src: string, opts: any) => string | undefined; export interface StoreOperation { name: string; def: AnyOpts; } export declare class BaseApi implements Chainable { chain: Chainable; defaultOpts: AnyOpts; store: StoreOperation[]; constructor(chain: Chainable, opts?: AnyOpts); resetStore(): this; addToStore(name: string, def: AnyOpts): this; addOpsToStore(ops: StoreOperation[]): this; applyStore(): this; get source(): string; setDefaultOpts(opts?: AnyOpts): void; set source(src: string); apply(modifyFn: ModifyApiFn, opts: any): this; }