import type { DynamicClient } from '../../../../client/types';
export type WithFlowSessionTokenCleanupOn401Params<T> = {
    call: () => Promise<T>;
    flowId: string;
};
/**
 * Flow mutation routes are guarded server-side only by session-token
 * validation, so a 401 means the token is dead (revoked, expired, deleted,
 * or invalid). Leaving a dead token in `localStorage` widens the XSS
 * exfiltration surface for no benefit and makes the next SDK load attempt
 * requests that are guaranteed to fail.
 *
 * @notInstrumented
 */
export declare const withFlowSessionTokenCleanupOn401: <T>({ call, flowId }: WithFlowSessionTokenCleanupOn401Params<T>, client: DynamicClient) => Promise<T>;
//# sourceMappingURL=withFlowSessionTokenCleanupOn401.d.ts.map