import { type core } from 'zod'; interface Logger { error: (data: object, message: string) => void; } export declare function setZodLogger(l: Logger): void; /** * Extends Zod schemas with ensureOutputShape method */ declare module 'zod' { interface ZodType = core.$ZodTypeInternals> extends core.$ZodType { /** * Validates output data shape and throws InternalServerError if validation fails. * Used to ensure workflows return correctly shaped data. * * @param data - The data to validate * @returns The validated and typed data * @throws InternalServerError if validation fails (indicates a bug in the code) * * @example * return LoggedInAccountResponseSchema.ensureOutputShape({ account, session }) */ ensureOutputShape(data: unknown): core.output; } } export {};