import { ObservabilityOptions } from '../types'; type TrpcProcedureType = 'query' | 'mutation' | 'subscription'; type TrpcMiddlewareOpts = { path: string; type: TrpcProcedureType; ctx: unknown; next: (opts?: { ctx?: unknown; }) => Promise<{ ok: boolean; [k: string]: unknown; }>; input: unknown; }; /** * tRPC middleware for auto-api-observe. * Pass this to `t.middleware()` (tRPC v10+). * * @example * import { createTrpcObservabilityMiddleware } from 'auto-api-observe'; * * const isObserved = t.middleware( * createTrpcObservabilityMiddleware({ apiKey: process.env.APILENS_KEY }) * ); * * // Apply to all procedures: * const publicProcedure = t.procedure.use(isObserved); */ export declare function createTrpcObservabilityMiddleware(options?: ObservabilityOptions): (opts: TrpcMiddlewareOpts) => Promise<{ ok: boolean; [k: string]: unknown; }>; export {}; //# sourceMappingURL=trpc.d.ts.map