/** * Remediation hints for withdrawal-queue errors. * * Leaf module (depends on nothing in the adapter) so both `queue.actions.ts` * and `vault.actions.ts` can use it: `queue.actions.ts` already imports from * `vault.actions.ts`, so defining the hints in either file and importing them * from the other would create a circular dependency. */ /** * The sentence to append for a queue error the caller can act on. * * @param e - The error thrown by an Anchor `.rpc()` call (any value). * @returns A sentence starting with a space, or `''` when the error is not a * queue error with a known remedy. */ export declare function queueHint(e: unknown): string; /** * The hint for a direct vault redeem refused because the vault routes exits * through its withdrawal queue (`WithdrawalQueueRequired`, vault error 6021). * * Only this one queue hint applies to a direct redeem: the others (cooldown, * claim liquidity, ...) describe the claim of a queued request, and e.g. the * `NotEnoughLiquidity` claim hint ("the request stays pending") would be wrong * for a direct redeem, which leaves no request behind. * * @param e - The error thrown by the redeem `.rpc()` call (any value). * @returns The queue-redeem instruction sentence (leading space), or `''`. */ export declare function redeemQueueHint(e: unknown): string;