import { StrictUnion } from '../../../types'; import { AuthConfig, CognitoIdentityPoolConfig, CognitoUserPoolAndIdentityPoolConfig, CognitoUserPoolConfig, JWT, OAuthConfig } from '../types'; export declare function assertTokenProviderConfig(cognitoConfig?: StrictUnion): asserts cognitoConfig is CognitoUserPoolAndIdentityPoolConfig | CognitoUserPoolConfig; export declare function assertOAuthConfig(cognitoConfig?: AuthConfig['Cognito']): asserts cognitoConfig is AuthConfig['Cognito'] & { loginWith: { oauth: OAuthConfig; }; }; export declare function assertIdentityPoolIdConfig(cognitoConfig?: StrictUnion): asserts cognitoConfig is CognitoIdentityPoolConfig; export declare function decodeJWT(token: string): JWT;