/** * MSW handlers for API mocking in tests */ export declare const BASE_URL = "https://api.tinybird.co"; /** * Create build success response */ export declare function createBuildSuccessResponse(options?: { buildId?: string; changedPipes?: string[]; newPipes?: string[]; deletedPipes?: string[]; changedDatasources?: string[]; newDatasources?: string[]; deletedDatasources?: string[]; }): { result: string; build: { id: string; changed_pipe_names: string[]; new_pipe_names: string[]; deleted_pipe_names: string[]; changed_datasource_names: string[]; new_datasource_names: string[]; deleted_datasource_names: string[]; }; }; /** * Create build failure response */ export declare function createBuildFailureResponse(error: string): { result: string; error: string; }; /** * Create build failure response with multiple errors */ export declare function createBuildMultipleErrorsResponse(errors: Array<{ filename?: string; error: string; }>): { result: string; errors: { filename?: string; error: string; }[]; }; /** * Create no changes response */ export declare function createNoChangesResponse(): { result: string; }; /** * Create deploy success response (for /v1/deploy endpoint) * This returns a deployment object, not a build object */ export declare function createDeploySuccessResponse(options?: { deploymentId?: string; status?: string; }): { result: string; deployment: { id: string; status: string; }; }; /** * Create deployment status response (for /v1/deployments/:id endpoint) */ export declare function createDeploymentStatusResponse(options?: { deploymentId?: string; status?: string; }): { result: string; deployment: { id: string; status: string; }; }; /** * Create set-live success response (for /v1/deployments/:id/set-live endpoint) */ export declare function createSetLiveSuccessResponse(): { result: string; }; /** * Create deployments list response (for /v1/deployments endpoint) */ export declare function createDeploymentsListResponse(options?: { deployments?: Array<{ id: string; status: string; live: boolean; }>; }): { deployments: { id: string; status: string; live: boolean; }[]; }; /** * Default handlers for build and deploy endpoints */ export declare const handlers: import("msw").HttpHandler[]; //# sourceMappingURL=handlers.d.ts.map