import type { Try } from '@skyleague/axioms'; import type { InferFromParser, MaybeGenericParser } from '../../../parsers/types.js'; import type { DefaultServices } from '../../types.js'; export interface ProfileSchema { schema: Profile; application?: string | undefined; environment?: string | undefined; name?: string | undefined; maxAge?: number; } export interface ProfileOptions { profile?: ProfileSchema; } export declare function profileHandler(definition: ProfileOptions, services: () => Promise | Services): { before: () => Promise>>; };