import { ModuleFederation } from '@module-federation/runtime';
import { ModuleInfo } from '@module-federation/sdk';
import { Remote } from '@module-federation/runtime/types';
import type { Federation } from '@module-federation/runtime';
interface FederationWithPrefetch extends Federation {
    __PREFETCH__: {
        entryLoading: Record<string, undefined | Promise<void>>;
        instance: Map<string, MFDataPrefetch>;
        __PREFETCH_EXPORTS__: Record<string, () => Promise<Record<string, any>>>;
    };
}
type PrefetchExports = Record<string, any>;
export interface DataPrefetchOptions {
    name: string;
    remote?: Remote;
    origin?: ModuleFederation;
    remoteSnapshot?: ModuleInfo;
}
export interface prefetchOptions {
    id: string;
    functionId?: string;
    cacheStrategy?: () => boolean;
    refetchParams?: any;
}
export declare class MFDataPrefetch {
    prefetchMemory: Map<string, Promise<any>>;
    recordOutdate: Record<string, Record<string, boolean>>;
    private _exports;
    private _options;
    constructor(options: DataPrefetchOptions);
    get global(): FederationWithPrefetch['__PREFETCH__'];
    static getInstance(id: string): MFDataPrefetch | undefined;
    loadEntry(entry: string | undefined): Promise<any>;
    getProjectExports(): Promise<void> | Record<string, any>;
    memorizeExports(exports: Record<string, any>): void;
    getExposeExports(id: string): PrefetchExports;
    prefetch(prefetchOptions: prefetchOptions): any;
    memorize(id: string, value: any): void;
    markOutdate(markOptions: Omit<prefetchOptions, 'cacheStrategy'>, isOutdate: boolean): void;
    checkOutdate(outdateOptions: prefetchOptions): boolean;
}
export {};
