import * as v from '../../shared/src/valita.ts';
export declare const transformRequestBodySchema: v.ArrayType<v.ObjectType<{
    id: v.Type<string>;
    name: v.Type<string>;
    args: v.Type<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
}, undefined>>;
export type TransformRequestBody = v.Infer<typeof transformRequestBodySchema>;
export declare const transformedQuerySchema: v.ObjectType<{
    id: v.Type<string>;
    name: v.Type<string>;
    ast: v.Type<import("./ast.ts").AST>;
}, undefined>;
export declare const appQueryErrorSchema: v.ObjectType<{
    error: v.Type<"app">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>;
export declare const zeroErrorSchema: v.ObjectType<{
    error: v.Type<"zero">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>;
export declare const httpQueryErrorSchema: v.ObjectType<{
    error: v.Type<"http">;
    id: v.Type<string>;
    name: v.Type<string>;
    status: v.Type<number>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>;
export declare const erroredQuerySchema: v.UnionType<[v.ObjectType<{
    error: v.Type<"app">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"http">;
    id: v.Type<string>;
    name: v.Type<string>;
    status: v.Type<number>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"zero">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>]>;
export type ErroredQuery = v.Infer<typeof erroredQuerySchema>;
export type AppQueryError = v.Infer<typeof appQueryErrorSchema>;
export type HttpQueryError = v.Infer<typeof httpQueryErrorSchema>;
export declare const transformResponseBodySchema: v.ArrayType<v.UnionType<[v.ObjectType<{
    id: v.Type<string>;
    name: v.Type<string>;
    ast: v.Type<import("./ast.ts").AST>;
}, undefined>, v.UnionType<[v.ObjectType<{
    error: v.Type<"app">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"http">;
    id: v.Type<string>;
    name: v.Type<string>;
    status: v.Type<number>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"zero">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>]>]>>;
export type TransformResponseBody = v.Infer<typeof transformResponseBodySchema>;
export declare const transformRequestMessageSchema: v.TupleType<[v.Type<"transform">, v.ArrayType<v.ObjectType<{
    id: v.Type<string>;
    name: v.Type<string>;
    args: v.Type<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
}, undefined>>]>;
export type TransformRequestMessage = v.Infer<typeof transformRequestMessageSchema>;
export declare const transformErrorMessageSchema: v.TupleType<[v.Type<"transformError">, v.ArrayType<v.UnionType<[v.ObjectType<{
    error: v.Type<"app">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"http">;
    id: v.Type<string>;
    name: v.Type<string>;
    status: v.Type<number>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"zero">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>]>>]>;
export type TransformErrorMessage = v.Infer<typeof transformErrorMessageSchema>;
export declare const transformResponseMessageSchema: v.TupleType<[v.Type<"transformed">, v.ArrayType<v.UnionType<[v.ObjectType<{
    id: v.Type<string>;
    name: v.Type<string>;
    ast: v.Type<import("./ast.ts").AST>;
}, undefined>, v.UnionType<[v.ObjectType<{
    error: v.Type<"app">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"http">;
    id: v.Type<string>;
    name: v.Type<string>;
    status: v.Type<number>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>, v.ObjectType<{
    error: v.Type<"zero">;
    id: v.Type<string>;
    name: v.Type<string>;
    details: v.Type<import("../../shared/src/json.ts").ReadonlyJSONValue>;
}, undefined>]>]>>]>;
export type TransformResponseMessage = v.Infer<typeof transformResponseMessageSchema>;
//# sourceMappingURL=custom-queries.d.ts.map