import type { PayloadRequest } from 'payload'; import type { PostHogConfig } from '../types/index.js'; type SecureHandler = (req: PayloadRequest, ...args: any[]) => Promise; export declare function withAuth(handler: SecureHandler): (req: PayloadRequest, ...args: any[]) => Promise; export declare const createPostHogEndpoints: (posthogConfig?: PostHogConfig) => { handler: (req: PayloadRequest, ...args: any[]) => Promise; method: string; path: string; }[]; export {};