import { SWRConfig } from '../../types';
export declare const mergeConfig: <T extends Partial<SWRConfig<any, any>>, D extends Partial<SWRConfig<any, any>>>(fallbackConfig: T, config: D) => T & D & {
    onSuccess: ((data: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
    onError: ((err: any, key: string, config: SWRConfig<any, any>) => void) | undefined;
};
