import type { HookContext } from '@feathersjs/feathers'; export const hookTypes = ['around', 'before', 'after', 'error'] as const; export type HookType = typeof hookTypes[number]; export const methodNames = ['find', 'get', 'create', 'update', 'patch', 'remove'] as const; export type MethodName = typeof methodNames[number]; export type TransportName = 'socketio' | 'rest' | 'external' | 'server'; export type SyncContextFunction = (context: H) => T; export type AsyncContextFunction = ( context: H ) => Promise; export type ContextFunction = ( context: H ) => T | Promise; export type SyncPredicateFn = SyncContextFunction; export type AsyncPredicateFn = AsyncContextFunction< boolean, H >; export type PredicateFn = ContextFunction; export declare type HookFunction = ( context: H ) => Promise | H | void;