import type { AiGenerationDetailResponse } from '@playdrop/types';
type ApiResponseLike<T> = {
    status: number;
    body: T;
    headers: Headers;
};
type RequestExecutor = <T>(input: {
    method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
    path: string;
    body?: unknown;
    headers?: Record<string, string>;
    signal?: AbortSignal;
}) => Promise<ApiResponseLike<T>>;
type ErrorHandler = (response: ApiResponseLike<unknown>, defaultMessage: string) => never;
export declare function buildAiApiClientMethods(input: {
    request: RequestExecutor;
    handleApiError: ErrorHandler;
}): {
    fetchAiGeneration(id: string): Promise<AiGenerationDetailResponse>;
};
export {};
//# sourceMappingURL=ai.d.ts.map