/** Identify a recursive compile even after both compilers wrap its cause. * @param {unknown} error - The thrown value * @returns {boolean} Whether a recursive query compile caused this error */ export declare function isRecursiveQueryCompileError(error: unknown): boolean; /** * Compile the '$query' keyword of a schema into a validator. * * The query document compiles with a `compileTypeTest` hook backed by the * owning `JarenValidator` instance (threaded through `ValidationRoot`), so * schema literals inside the query (`$valid`/`$assert`/`$as`) may `$ref` * schemas registered on that instance with `addSchema`. Malformed query * documents (`JQ0xxx`) and externals other than `root`/`path` throw here, * at schema compile time. At validation time the query never throws: * a `JsonQueryRuntimeError` (`JQ2xxx` - a data-shaped failure such as the * EBV of a multi-item result or arithmetic on a non-number) reports as a * validation failure whose error params carry the `code` and the query * `docPath`. * * @param {object} schemaObj - The validation object * @param {object} jsonSchema - The JSON schema containing the '$query' keyword * @returns {function|undefined} The compiled validator function or undefined */ export declare function compileQuerySchema(schemaObj: object, jsonSchema: object): Function | undefined;