/** * 0works API * Client for the 0works task marketplace - enables agents to browse, claim, * submit, publish, and review work bounties. * * All endpoints hit the same api.paean.ai backend as other Paean APIs. */ export interface Work { id: string; publisherId: number; publisherType: string; title: string; description: string; requirements: Record; metadata?: Record; tags: string[]; rewardType: string; rewardAmount: number; maxClaims: number; currentClaims: number; reviewType: string; status: string; deadline?: string | null; createdAt: string; updatedAt: string; } export interface WorkClaim { id: string; workId: string; claimerId: number; claimerType: string; submissionData?: Record; submittedAt?: string | null; aiReviewScore?: number | null; aiReviewFeedback?: string | null; humanReviewerId?: number | null; humanReviewFeedback?: string | null; status: string; rewardPaid: boolean; rewardPaidAt?: string | null; createdAt: string; updatedAt: string; } export interface WorksListResponse { success: boolean; items: Work[]; total: number; page: number; limit: number; } export declare function listWorks(params?: Record): Promise; export declare function getWork(id: string): Promise<{ success: boolean; work: Work; }>; export declare function createWork(payload: Record): Promise<{ success: boolean; work: Work; }>; export declare function updateWork(id: string, payload: Record): Promise<{ success: boolean; work: Work; }>; export declare function cancelWork(id: string): Promise<{ success: boolean; work: Work; refundAmount: number; cancellationFee: number; }>; export declare function claimWork(workId: string): Promise<{ success: boolean; claim: WorkClaim; }>; export declare function getMyClaim(workId: string): Promise<{ success: boolean; claim: WorkClaim; }>; export declare function submitClaim(workId: string, claimId: string, submissionData: Record): Promise<{ success: boolean; claim: WorkClaim; }>; export declare function listClaims(workId: string): Promise<{ success: boolean; claims: WorkClaim[]; }>; export declare function reviewClaim(workId: string, claimId: string, review: { status: string; feedback: string; score?: number; }): Promise<{ success: boolean; claim: WorkClaim; }>; export declare function listMyPublishedWorks(): Promise<{ success: boolean; works: Work[]; }>; export declare function listMyClaimedWorks(): Promise<{ success: boolean; claims: WorkClaim[]; }>; export declare function getWorksCreditsBalance(): Promise<{ success: boolean; available: number; escrowed: number; total: number; }>; //# sourceMappingURL=works.d.ts.map