import { z } from 'zod'; /** Calls `listener` with `API: ` whenever verifyEntity finds an invalid payload. Returns an unsubscribe function. */ export declare function onVerifyEntityFailure(listener: (message: string) => void): () => void; /** Sends your own message to every onVerifyEntityFailure listener (e.g. "this API has no schema yet"). */ export declare function emitVerifyEntityFailure(message: string): void; /** * Validates `data` against a Zod schema. * @param apiName shown in the failure message and logs * @param schema Zod schema of the expected response * @param data the value to validate (e.g. an API response) * @param entityName schema name shown in the logs * @param log true = print failures (and successes) to the console * @returns Zod's safeParse result: `success`, then `data` or `error` */ export declare function verifyEntity(apiName: string, schema: T, data: unknown, entityName: string, log?: boolean): z.ZodSafeParseResult>;