import type { ApiRoutesWorkerParams, ApiRoutesWorkerResponse } from '../types/plugins/api-routes.js';
import type { RenderPayload } from '../../types/ssr.js';
import type { API_ROUTES_WORKER_KEY } from './api-routes-worker-pool.js';
import type { SSR_WORKER_KEY } from './ssr-worker-pool.js';
export type SsrWorkerResponse = {
    html: string;
    statusCode: 200 | 500;
    error?: Error;
};
export type WorkerTypeMapping = {
    [API_ROUTES_WORKER_KEY]: {
        params: [ApiRoutesWorkerParams];
        response: ApiRoutesWorkerResponse;
    };
    [SSR_WORKER_KEY]: {
        params: [RenderPayload];
        response: SsrWorkerResponse;
    };
};
export type WorkerParams<T extends keyof WorkerTypeMapping> = WorkerTypeMapping[T]['params'];
export type WorkerResponse<T extends keyof WorkerTypeMapping> = WorkerTypeMapping[T]['response'];
//# sourceMappingURL=types.d.ts.map