import type { VovkController, VovkHandlerSchema } from '../types/core.js'; import type { VovkRequest } from '../types/request.js'; import type { KnownAny } from '../types/utils.js'; type Next = () => Promise; export declare const getDecoratedMember: (controller: VovkController, propertyKey: string) => ((...args: KnownAny[]) => unknown) | undefined; /** * Creates a custom decorator for Vovk controllers. * @see https://vovk.dev/decorator */ export declare function createDecorator(handler: null | ((this: VovkController, req: TRequest, next: Next, ...args: TArgs) => unknown), initHandler?: (this: VovkController, ...args: TArgs) => Omit | ((handlerSchema: VovkHandlerSchema | null, options: { handlerName: string; }) => Omit, 'path' | 'httpMethod'>) | null | undefined): (...args: TArgs) => (target: KnownAny, propertyKeyOrContext?: unknown) => KnownAny; export {};