import { GraphQLApiError, type MfaFactorView } from './api-client'; export interface StepUpProof { readonly challengeId: string; readonly stepUpToken: string; readonly expiresAt: Date; readonly factorId: string; readonly factorType: string; readonly action: string; } export type StepUpCredentialResolver = (input: { readonly challengeId: string; readonly action: string; readonly factors: ReadonlyArray; }) => Promise<{ factorId: string; credential: unknown; }>; export declare function completeStepUpChallenge(options: { readonly targetOrg: string; readonly challengeId: string; readonly action: string; readonly resolveCredential: StepUpCredentialResolver; }): Promise; export declare function runWithStepUp(options: { readonly targetOrg: string; readonly query: string; readonly variables: Record; readonly resolveCredential: StepUpCredentialResolver; readonly retryVariables?: (variables: Record, proof: StepUpProof) => Record; }): Promise<{ data: T; proof: StepUpProof | null; }>; export declare class StepUpBootstrapError extends Error { readonly code: string; constructor(code: string, message: string); } export declare function buildNonInteractiveCredentialResolver(options: { readonly factorId?: string; readonly factorType?: string; readonly credential?: string; }): StepUpCredentialResolver; export declare function freshIdempotencyKey(): string; export { GraphQLApiError };