import { CantonQueryCompletionResponseDto } from '../core/types'; /** Default timeout (ms) to wait for transaction completion */ export declare const DEFAULT_COMPLETION_TIMEOUT_MS = 60000; /** Default polling interval (ms) while waiting for completion */ export declare const DEFAULT_COMPLETION_POLL_INTERVAL_MS = 1000; export interface PollUntilCompletedParams { queryCompletion: (submissionId: string) => Promise; submissionId: string; timeout?: number; pollInterval?: number; /** Optional human-readable label included in timeout error message */ label?: string; } /** * Poll `queryCompletion` until status === 'completed' or timeout elapses. * Skips the trailing sleep if the next iteration would exceed the timeout. */ export declare function pollUntilCompleted(params: PollUntilCompletedParams): Promise;