import { Backend } from "./backend"; import * as hapiJwt from "hapi-auth-jwt2"; import { Server } from "hapi"; import { SignOptions } from "jsonwebtoken"; export interface Options { /** * The private key to use for signing and verifying tokens */ key: string; /** * Options that will be passed to the JWT signing function * @see https://github.com/auth0/node-jsonwebtoken#jwtsignpayload-secretorprivatekey-options-callback */ sign: SignOptions; } export interface PluginAPI { registerBackend(backend: Backend): void; } export declare class Plugin implements PluginAPI { protected readonly _server: Server; protected _options: Options; protected _backend: Backend; constructor(_server: Server, options?: Partial); registerBackend(backend: Backend): void; jwtOptions: () => hapiJwt.Options; }