import { ChainId } from '@dcl/schemas/dist/dapps/chain-id'; import { Authorization, AuthorizationAction, AuthorizationOptions } from './types'; export declare const FETCH_AUTHORIZATIONS_REQUEST = "[Request] Fetch Authorizations"; export declare const FETCH_AUTHORIZATIONS_SUCCESS = "[Success] Fetch Authorizations"; export declare const FETCH_AUTHORIZATIONS_FAILURE = "[Failure] Fetch Authorizations"; export declare const fetchAuthorizationsRequest: (authorizations: Authorization[]) => import("typesafe-actions/dist/types").PayloadAction<"[Request] Fetch Authorizations", { authorizations: Authorization[]; }>; /** * @param authorizations Tuple of the original authorization used to fetch and the authorization fetched result. * Necessary by the reducer to be able to remove authorizations fetched that now are not authorized anymore. */ export declare const fetchAuthorizationsSuccess: (authorizations: [Authorization, Authorization | null][]) => import("typesafe-actions/dist/types").PayloadAction<"[Success] Fetch Authorizations", { authorizations: [Authorization, Authorization | null][]; }>; export declare const fetchAuthorizationsFailure: (authorizations: Authorization[], error: string) => import("typesafe-actions/dist/types").PayloadAction<"[Failure] Fetch Authorizations", { authorizations: Authorization[]; error: string; }>; export type FetchAuthorizationsRequestAction = ReturnType; export type FetchAuthorizationsSuccessAction = ReturnType; export type FetchAuthorizationsFailureAction = ReturnType; export declare const GRANT_TOKEN_REQUEST = "[Request] Grant Token"; export declare const GRANT_TOKEN_SUCCESS = "[Success] Grant Token"; export declare const GRANT_TOKEN_FAILURE = "[Failure] Grant Token"; export declare const grantTokenRequest: (authorization: Authorization) => import("typesafe-actions/dist/types").PayloadAction<"[Request] Grant Token", { authorization: Authorization; }>; export declare const grantTokenSuccess: (authorization: Authorization, chainId: ChainId, txHash: string) => import("typesafe-actions/dist/types").PayloadAction<"[Success] Grant Token", { authorization: Authorization; _watch_tx: { chainId: ChainId; toChainId?: ChainId; hash: string; payload: any; requestId?: string; withReceipt?: boolean; crossChainProviderType?: import("../transaction").CrossChainProviderType; from?: string; }; }>; export declare const grantTokenFailure: (authorization: Authorization, error: string) => import("typesafe-actions/dist/types").PayloadAction<"[Failure] Grant Token", { authorization: Authorization; error: string; }>; export type GrantTokenRequestAction = ReturnType; export type GrantTokenSuccessAction = ReturnType; export type GrantTokenFailureAction = ReturnType; export declare const REVOKE_TOKEN_REQUEST = "[Request] Revoke Token"; export declare const REVOKE_TOKEN_SUCCESS = "[Success] Revoke Token"; export declare const REVOKE_TOKEN_FAILURE = "[Failure] Revoke Token"; export declare const revokeTokenRequest: (authorization: Authorization) => import("typesafe-actions/dist/types").PayloadAction<"[Request] Revoke Token", { authorization: Authorization; }>; export declare const revokeTokenSuccess: (authorization: Authorization, chainId: ChainId, txHash: string) => import("typesafe-actions/dist/types").PayloadAction<"[Success] Revoke Token", { authorization: Authorization; _watch_tx: { chainId: ChainId; toChainId?: ChainId; hash: string; payload: any; requestId?: string; withReceipt?: boolean; crossChainProviderType?: import("../transaction").CrossChainProviderType; from?: string; }; }>; export declare const revokeTokenFailure: (authorization: Authorization, error: string) => import("typesafe-actions/dist/types").PayloadAction<"[Failure] Revoke Token", { authorization: Authorization; error: string; }>; export type RevokeTokenRequestAction = ReturnType; export type RevokeTokenSuccessAction = ReturnType; export type RevokeTokenFailureAction = ReturnType; export declare const AUTHORIZATION_FLOW_REQUEST = "[Request] Authorization Flow"; export declare const AUTHORIZATION_FLOW_SUCCESS = "[Success] Authorization Flow"; export declare const AUTHORIZATION_FLOW_FAILURE = "[Failure] Authorization Flow"; export declare const AUTHORIZATION_FLOW_CLEAR = "[Clear] Authorization Flow"; export declare const authorizationFlowRequest: (authorization: Authorization, authorizationAction: AuthorizationAction, options?: AuthorizationOptions) => import("typesafe-actions/dist/types").PayloadAction<"[Request] Authorization Flow", { authorization: Authorization; authorizationAction: AuthorizationAction; requiredAllowance: string | undefined; currentAllowance: string | undefined; traceId: string | undefined; onAuthorized: (() => void) | undefined; }>; export declare const authorizationFlowSuccess: (authorization: Authorization) => import("typesafe-actions/dist/types").PayloadAction<"[Success] Authorization Flow", { authorization: Authorization; }>; export declare const authorizationFlowFailure: (authorization: Authorization, error: string) => import("typesafe-actions/dist/types").PayloadAction<"[Failure] Authorization Flow", { authorization: Authorization; error: string; }>; export declare const authorizationFlowClear: () => import("typesafe-actions/dist/types").EmptyAction<"[Clear] Authorization Flow">; export type AuthorizationFlowRequestAction = ReturnType; export type AuthorizationFlowSuccessAction = ReturnType; export type AuthorizationFlowFailureAction = ReturnType; export type AuthorizationFlowClearAction = ReturnType;