import { Provider } from './provider.js'; import { Oauth2WrappedConfig, Oauth2Token } from './oauth2.js'; import 'hono'; import '../storage/storage.js'; interface CognitoConfig extends Oauth2WrappedConfig { /** * The domain of the Cognito User Pool. * * @example * ```ts * { * domain: "your-domain.auth.us-east-1.amazoncognito.com" * } * ``` */ domain: string; /** * The region the Cognito User Pool is in. * * @example * ```ts * { * region: "us-east-1" * } * ``` */ region: string; } /** * Create a Cognito OAuth2 provider. * * @param config - The config for the provider. * @example * ```ts * CognitoProvider({ * domain: "your-domain.auth.us-east-1.amazoncognito.com", * region: "us-east-1", * clientID: "1234567890", * clientSecret: "0987654321" * }) * ``` */ declare function CognitoProvider(config: CognitoConfig): Provider<{ tokenset: Oauth2Token; clientID: string; }>; export { type CognitoConfig, CognitoProvider };