import { FunctionOptions } from '.';
import type { SupabaseClient } from '../index';
type Client = SupabaseClient & {
    native: NSCSupabaseClient;
};
declare class Context {
    error: FunctionsHttpError;
    json(): Promise<Record<string, any>>;
}
export declare class FunctionsHttpError extends Error {
    native_: NSCSupabaseFunctionsErrorResult;
    context_: Context;
    get native(): NSCSupabaseFunctionsErrorResult;
    static fromNative(value: NSCSupabaseFunctionsErrorResult): FunctionsHttpError;
}
export declare class FunctionsRelayError extends Error {
}
export declare class SupabaseFunctionsClient {
    client: Client;
    constructor(client: Client);
    get native(): NSCSupabaseFunctions;
    invoke(functionName: string, options?: FunctionOptions): Promise<any>;
}
export {};
