import { GDplugin } from '../GDplugin.js'; export type Name = 'GDapiKeyAuthentication'; export { docOneLine, documentation } from './doc.js'; export type GDapiKey = { [apiKey in (GD['role'] | (string & {}))]?: { _id?: string; token: string; role?: GD['role']; permissions?: Partial>; /** Add IPs to whitelist, all other IPs will be non-authorized to authenticate with apiKey */ ipWhitelist?: MaybeArray; }; }; export type PluginUserConfig = { enable: boolean; apiKeys?: GDapiKey; }; export declare const defaultConfig: { enable: true; }; /** This handles 2FA, pinCode authentication or biometric authentication. Request headers must contain at least one of those fields to work: `biometricAuthToken`, `pincode`, `2FA`. */ export declare class GDapiKeyAuthentication extends GDplugin { name: "GDapiKeyAuthentication"; config: PluginUserConfig; constructor(config: PluginUserConfig); } declare const _default: import("../newPlugin.js").NewPluginConfig<"GDapiKeyAuthentication", PluginUserConfig, typeof GDapiKeyAuthentication>; export default _default;