import { Auth, Credential, CreateCredentialOptions, UpdateCredentialOptions } from '../sdk/auth.js'; import { S as Selector } from '../shared/hive.DlaRxYsk.js'; import '../sdk/transaction.js'; import 'zod'; import '../sdk/logger.js'; import '../streams/index.js'; //#region src/index.d.ts /** * `Auth` implementation that validates access against a static set of tokens. */ declare class StaticAuth extends Auth { /** * Set of tokens that are considered valid. */ readonly tokens: Map; /** * Create a new `StaticAuth` instance. */ constructor(tokens: Array); readonly list: () => Promise>; readonly create: (_opts: CreateCredentialOptions) => Promise; readonly update: (_id: string, _opts: UpdateCredentialOptions) => Promise; readonly delete: (_id: string) => Promise; readonly isValid: (token: string | null | undefined) => Promise; readonly hasAccess: (token: string | null | undefined, resource: Selector | null | undefined) => Promise; } export { StaticAuth };