import * as hono_utils_jwt_types from 'hono/utils/jwt/types'; import { Provider } from './provider.js'; import { Oauth2WrappedConfig, Oauth2Token } from './oauth2.js'; import { OidcWrappedConfig } from './oidc.js'; import 'hono'; import '../storage/storage.js'; interface GoogleConfig extends Oauth2WrappedConfig { } interface GoogleOidcConfig extends OidcWrappedConfig { } /** * Create a Google OAuth2 provider. * * @param config - The config for the provider. * @example * ```ts * GoogleProvider({ * clientID: "1234567890", * clientSecret: "0987654321" * }) * ``` */ declare function GoogleProvider(config: GoogleConfig): Provider<{ tokenset: Oauth2Token; clientID: string; }>; /** * Create a Google OIDC provider. * * This is useful if you just want to verify the user's email address. * * @param config - The config for the provider. * @example * ```ts * GoogleOidcProvider({ * clientID: "1234567890" * }) * ``` */ declare function GoogleOidcProvider(config: GoogleOidcConfig): Provider<{ id: hono_utils_jwt_types.JWTPayload; clientID: string; }>; export { type GoogleConfig, type GoogleOidcConfig, GoogleOidcProvider, GoogleProvider };