import type { AuditContext } from '@cclabsnz/sf-core'; /** * Which fields an object has in this org, by describe (a GET, so read-only). * * Use it before querying a field that only some editions, licences or releases carry, such as a * permission like PermissionsManageEventLogFiles. Querying an absent field fails the whole query; * describing first lets a check say "not available in this org" instead of failing, and never * lets the absence read as a pass. */ export type Api = 'soql' | 'tooling'; /** The object's field names, or null when this API does not serve the object in this org. */ export declare function fieldsOf(ctx: AuditContext, object: string, api?: Api): Promise | null>; /** The subset of `wanted` the object has, in the order given. Empty when the object is absent. */ export declare function presentFields(ctx: AuditContext, object: string, wanted: readonly string[], api?: Api): Promise; /** True when the object has the field. */ export declare function hasField(ctx: AuditContext, object: string, field: string, api?: Api): Promise; //# sourceMappingURL=schema.d.ts.map