import { type CustomDecorator } from '@nestjs/common'; export declare function Public(): CustomDecorator; /** * Metadata key carrying the @PublicData reason (string) on a handler/class. * The gateway's context interceptor reads it to stamp `unscoped` on the ALS context, * which the signer propagates as the internal-JWT `unsc` claim. */ export declare const PUBLIC_DATA_KEY = "authz:publicData"; /** * @PublicData — like @Public (no login required) BUT additionally declares that the * underlying data is GLOBAL reference data with no tenant dimension (countries, cities, * languages…). Downstream the query runs UNSCOPED instead of fail-closing on the missing * ability — the propagated equivalent of wrapping the handler in `runUnscoped(reason)`. * * This is intentionally a DISTINCT decorator from @Public, not an option on it: a plain * @Public left by mistake on tenant data must keep failing closed (deny), never leak all * tenants. Use @PublicData ONLY for data that is genuinely tenant-less and public. */ export declare function PublicData(reason: string): MethodDecorator & ClassDecorator; //# sourceMappingURL=public.decorator.d.ts.map