import type { ApiFunctionsContext } from '@redocly/config';
export type ApiFunctionsWorkerResponse = {
    type: 'response';
    data: any;
};
export type ApiFunctionsSystemMessage = ApiFunctionsMemoryUsageMessage;
export type ApiFunctionsMemoryUsageMessage = {
    type: 'system';
    systemType: 'memoryUsage';
    data: {
        heapUsed: number;
    };
};
export type ApiFunctionsErrorMessage = {
    type: 'error';
    data: {
        message: string;
        stack: string;
    };
};
export type ApiFunctionsBasicContext = Omit<ApiFunctionsContext, 'params' | 'query' | 'cookies' | 'status' | 'json' | 'text' | 'redirect' | 'setCookie' | 'deleteCookie' | 'log' | 'getKv'>;
//# sourceMappingURL=api-functions.d.ts.map