import * as v from "@exodus/schemasafe"; import { IIdString } from "./id_string"; import { IIdObject } from "./id_object"; /** * Primary key and or document identifier. */ export declare type IId = IIdString | IIdObject; export declare const IdSchema: Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "id"; readonly title: "Id"; readonly description: "Primary key and or document identifier."; readonly oneOf: readonly [Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "id_string"; readonly title: "IdString"; readonly type: "string"; readonly format: "objectid"; readonly examples: readonly ["507f1f77bcf86cd799439011"]; }>, Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "id_object"; readonly title: "IdObject"; readonly tsType: "import(\"bson\").ObjectId"; readonly type: "object"; readonly additionalProperties: true; readonly readOnly: true; }>]; }>; export declare function validateId(value: unknown, options?: v.ValidatorOptions): v.ParseResult; export declare function assertId(value: unknown): asserts value is IId;