import { CKDBQuerySort } from "./CKDBQuerySortCodec"; import { CKDBQueryFilter } from "./CKDBQueryFilterCodec"; /** * An object that represents a query for searching records. * * API schema: CKDBQuery * API version: 1.3.2 */ export interface CKDBQuery { /** * The record type to perform this query on. */ recordType: string; /** * The array of filters used to determine whether a record matches the query. */ filters?: CKDBQueryFilter[]; /** * The array of sort descriptors that specify how to order the fetched records. */ sorts?: CKDBQuerySort[]; } /** * An object the provides the functions that * transform {@link CKDBQuery } to and from JSON. */ export declare const jsonCodecCKDBQueryOwnProperties: { /** * Get an encoder that transforms {@link CKDBQuery }'s * own properties to JSON. */ readonly getEncoder: () => { readonly filters: (value: CKDBQueryFilter[] | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly sorts: (value: CKDBQuerySort[] | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly recordType: (value: string) => import("@apple/cktool.core").ValidatedNEA; }; /** * Get a decoder that transforms {@link CKDBQuery }'s * own properties from JSON. */ readonly getDecoder: () => { readonly filters: (value: CKDBQueryFilter[] | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly sorts: (value: CKDBQuerySort[] | import("fp-ts/lib/Option").Option | null | undefined) => import("@apple/cktool.core").ValidatedNEA>; readonly recordType: (value: string) => import("@apple/cktool.core").ValidatedNEA; }; };