UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

8 lines (7 loc) 506 B
import type { UCInput } from '../input.js'; import type { UCOPIBase } from '../opi.js'; import type { UCPolicy, UCPolicyInput, UCPolicyOutput } from '../policy.js'; export declare class AuthenticatedUCPolicy<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined> implements UCPolicy<I, OPI0, OPI1> { canBeExecutedPreAuth(): Promise<boolean>; exec({ uc, }: UCPolicyInput<I, OPI0, OPI1>): Promise<UCPolicyOutput>; }