import { ExecutionContext } from "@nestjs/common"; type CurrentUserIdDecoratorOptions = { nullable?: boolean; }; export declare const decoratorFunction: (options: CurrentUserIdDecoratorOptions | undefined, context: ExecutionContext) => string | undefined; /** * Inject authenticated user's ID into method argument. * * This is Clone Bay's internal UUID, not EVE/ESI ID. * * Accepts an optional `options` configuration object to allow a missing user. * If `options.nullable` is set to `true`, this decorator will return `null` for * a missing user. Otherwise throws HTTP 401. * * ### Examples: * * ```ts * @Get("hello") * async hello(@CurrentUserId() userId: string) { * // Will throw if user is not found. * } * ``` * * ```ts * @Get("hello") * async hello(@CurrentUserId({ nullable: true }) userId: string | undefined) { * // `userId` is `undefined` if not authenticated or not found. * // No error is thrown. * } * ``` * * @returns `string | null` * @group Decorators */ export declare const CurrentUserId: (...dataOrPipes: (CurrentUserIdDecoratorOptions | import("@nestjs/common").PipeTransform | import("@nestjs/common").Type>)[]) => ParameterDecorator; export {};