import { CivicPassMessageResponse, GatewayToken, RootState, WalletAdapter, InternalGatewayStatus, ChainErrorResponse } from '../types'; import type { Action } from '../useReducer'; import { RequestTokenIssuanceResponse } from '../utils/gatekeeperClient'; export type UseCivicPassIssuanceAction = { type: 'civicPass_issuance_success'; payload: CivicPassMessageResponse; } | { type: 'civicPass_issuance_failure'; } | { type: 'civicPass_issuance_rejected'; payload?: Pick; } | { type: 'civicPass_issuance_cancelled'; } | { type: 'civicPass_in_progress'; } | { type: 'civicPass_check_token_status'; token?: GatewayToken; } | { type: 'civicPass_close'; } | { type: 'civicPass_refresh_success'; payload: CivicPassMessageResponse; } | { type: 'civicPass_refresh_failure'; } | { type: 'civicPass_refresh_cancelled'; } | { type: 'civicPass_check_in_progress'; } | { type: 'civicPass_check_status_complete'; payload: CivicPassMessageResponse; } | { type: 'civicPass_location_not_supported'; } | { type: 'civicPass_vpn_not_supported'; } | { type: 'civicPass_error_user_retry'; } | { type: 'civicPass_owner_transaction_confirmed'; } | { type: 'civicPass_awaiting_owner_transaction'; } | { type: 'civicPass_owner_transaction_timeout'; } | { type: 'civicPass_signMessageError'; payload?: ChainErrorResponse; } | { type: 'civicPass_owner_sends_chainTransactionError'; payload?: ChainErrorResponse; } | { type: 'civicPass_token_in_partner_review_status'; }; type ErrorReponse = { errorCode?: string; payload?: Record; }; export declare const getCivicPassSrcUrl: (state: RootState, status: InternalGatewayStatus, errorResponse?: ErrorReponse) => string | undefined; export declare const reducer: (state: RootState, action: Action) => RootState; declare const useCivicPass: ({ wallet }: { wallet: WalletAdapter | undefined; }, state: Partial, dispatch: React.Dispatch) => { dispatchComplianceEventResult: (response: CivicPassMessageResponse) => void; }; export default useCivicPass;