import type { TContext } from '../../../controllers/common/types/index.js'; import type { TNullable } from '@venizia/ignis-helpers/common'; import type { Env } from 'hono'; import type { IAuthorizationDomainSource, IAuthorizationSpec, IAuthorizeOptions } from '../common/types/index.js'; /** Reads the domain of an authorization check off the request. */ export declare class RequestDomainResolver { /** Read a domain value from a declarative source on the Hono context. */ static readDeclarative(opts: { source: IAuthorizationDomainSource; context: TContext; }): TNullable; /** Resolve the request domain, precedence spec.domain (method | declarative) -> options.domainResolver -> SYSTEM_WIDE, as a casbin domain string ("_") or the SYSTEM_WIDE sentinel. */ static resolveRequestDomain(opts: { spec: IAuthorizationSpec; context: TContext; options: TNullable; }): Promise; } //# sourceMappingURL=request-domain.d.ts.map