import { type RefreshBalanceStatus } from '@/api/closing-draft';
import { type Ref } from 'vue';
export declare function useClosingDraftRefreshBalance(args: {
    closingDraftId: Ref<string | undefined | null>;
    currentRev: Ref<string | undefined | null>;
    onCompleted: (newDraft: FdoClosingDraft) => void;
    onError?: (error: string) => void;
}): {
    refreshing: Ref<boolean, boolean>;
    refreshStatus: Ref<{
        requestId: string;
        closingDraftId: string;
        closingDraftRevision: string;
        message?: string | null | undefined;
        startedAt: string;
        completedAt?: string | null | undefined;
    } | null, RefreshBalanceStatus | {
        requestId: string;
        closingDraftId: string;
        closingDraftRevision: string;
        message?: string | null | undefined;
        startedAt: string;
        completedAt?: string | null | undefined;
    }>;
    startListening: () => void;
    startRefresh: (effectiveDate: string) => Promise<void>;
    cleanup: () => void;
};
