1 | import type { GuardFactory } from './types.js';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | export declare class AuthenticatorClient<KnownGuards extends Record<string, GuardFactory>> {
|
9 | #private;
|
10 | |
11 |
|
12 |
|
13 | get defaultGuard(): keyof KnownGuards;
|
14 | constructor(config: {
|
15 | default: keyof KnownGuards;
|
16 | guards: KnownGuards;
|
17 | });
|
18 | /**
|
19 | * Returns an instance of a known guard. Guards instances are
|
20 | * cached during the lifecycle of an HTTP request.
|
21 | */
|
22 | use<Guard extends keyof KnownGuards>(guard?: Guard): ReturnType<KnownGuards[Guard]>;
|
23 | }
|