interface ClaimTransactionInstruction { programId: string; keys: Array<{ pubkey: string; isSigner: boolean; isWritable: boolean; }>; data: string; } interface ClaimTransactionRequest { distributionId: string; claimant: string; index?: number; proof?: string[]; unlockedAmount?: number; lockedAmount?: number; mint?: string; distributorPda?: string; rpcEndpoint?: string; } interface ClaimTransactionResponse { label: string; instructions: ClaimTransactionInstruction[]; transaction?: string; } interface ClaimableDistribution { distributorId: string; distributorName?: string; tokenMint: string; tokenSymbol?: string; owedAmount: string; status: "claimable" | "vesting" | "locked"; fees?: { fixedFee?: string; solFee?: string; }; } interface ClaimsResponse { claimable: ClaimableDistribution[]; claimed: ClaimHistoryItem[]; nextCursor: string | null; } interface ClaimHistoryItem { distributorId: string; claimedAmount: string; claimedAt: string; signature?: string | null; txSignature?: string | null; amount?: string; distributionTitle?: string | null; mint?: string | null; orgId?: string | null; status?: string | null; solFeeLamports?: string | null; solFeeUsd?: string | null; } type Fetcher = typeof fetch; declare const DEFAULT_BASE_PATH: string; interface SyncRequestOptions { basePath?: string; fetcher?: Fetcher; } interface SyncRequestConfig { basePath: string; fetcher: Fetcher; } declare function resolveRequestConfig(options?: SyncRequestOptions): SyncRequestConfig; declare class SyncReactError extends Error { readonly status: number; readonly code?: string | undefined; readonly details?: unknown | undefined; constructor(status: number, code?: string | undefined, details?: unknown | undefined); } declare function requestJSON(config: SyncRequestConfig, path: string, init?: RequestInit): Promise; declare function resolveFetcher(custom?: Fetcher): Fetcher; declare function sanitizeBasePath(path: string): string; declare function buildUrl(basePath: string, path: string): string; declare function isAbsoluteUrl(path: string): boolean; declare function isRelativeUrl(path: string): boolean; type BuildClaimTransactionRequest = ClaimTransactionRequest; type BuildClaimTransactionResponse = ClaimTransactionResponse; declare function buildClaimTransaction(input: BuildClaimTransactionRequest, options?: SyncRequestOptions): Promise; declare function listClaims(wallet: string, options?: SyncRequestOptions): Promise; export { type BuildClaimTransactionRequest, type BuildClaimTransactionResponse, type ClaimHistoryItem, type ClaimTransactionInstruction, type ClaimTransactionRequest, type ClaimTransactionResponse, type ClaimableDistribution, type ClaimsResponse, DEFAULT_BASE_PATH, type Fetcher, SyncReactError, type SyncRequestConfig, type SyncRequestOptions, buildClaimTransaction, buildUrl, isAbsoluteUrl, isRelativeUrl, listClaims, requestJSON, resolveFetcher, resolveRequestConfig, sanitizeBasePath };