export type FetchOptions = {
    tags?: string[];
    revalidate?: number | false;
};
export type FetchResult = {
    status: number;
    error?: string;
    data?: any;
    headers: Headers;
};
export type ApiConfig = {
    apiKey?: string;
    headers?: Headers;
};
export declare function apiGet(route: string, config?: ApiConfig): Promise<FetchResult>;
export declare function apiPostObject(route: string, object: any, config?: ApiConfig): Promise<FetchResult>;
export declare function getApiKey(): string | undefined;
export declare function getApiHeaders(requestHeadersSource?: Headers | HeadersInit | null | Promise<Headers | HeadersInit | null> | (() => Headers | HeadersInit | null | Promise<Headers | HeadersInit | null>)): Promise<Headers>;
