import { Drupalkit } from '@drupal-kit/core'; import { RequestRequestOptions } from '@drupal-kit/types'; /** * All verification providers must implement this interface. */ interface VerificationProvider { provide(requestOptions: RequestRequestOptions): Promise | void; } /** * A generic verification provider that adds * the verification data to the request via a * HTTP header. * * @param name - The HTTP header name. * @param value - The HTTP header value. */ declare const headerVerification: (name: string, value: string) => VerificationProvider; /** * Hash verification provider. * * Use this provider when using the `verification_hash` verification * provider drupal module. * * @param hash - The verification hash. */ declare const hashVerification: (hash: string) => VerificationProvider; /** * Magic Code verification provider. * * Use this provider when using the `magic_code` verification * provider drupal module. * * @param code - The magic code. */ declare const magicCodeVerification: (code: string) => VerificationProvider; /** * DrupalkitVerification plugin for Drupalkit. * * Provides a generic way to set and inject verification data * into Drupalkit. * This plugin requires the `verification` drupal module. * * @param drupalkit - The Drupalkit instance. */ declare const DrupalkitVerification: (drupalkit: Drupalkit) => { addVerification: (provider: VerificationProvider) => void; removeVerification: () => void; verification: { provider: VerificationProvider | null; }; }; export { DrupalkitVerification, type VerificationProvider, hashVerification, headerVerification, magicCodeVerification };