import * as z from 'zod'; import { type Description, type RawUserId, type Timestamp, type Version } from './satellite'; /** * @see RawData */ export declare const RawDataSchema: z.ZodCustom, Uint8Array>; /** * Represents raw binary data. * * This is used to store structured data in a document. */ export type RawData = Uint8Array; /** * @see Doc */ export declare const DocSchema: z.ZodObject<{ owner: z.ZodCustom, Uint8Array>; data: z.ZodCustom, Uint8Array>; description: z.ZodOptional; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>; /** * Represents a document stored in a collection. */ export interface Doc { /** * The user who owns this document. */ owner: RawUserId; /** * The raw data of the document. */ data: RawData; /** * An optional description of the document. */ description?: Description; /** * The timestamp when the document was first created. */ created_at: Timestamp; /** * The timestamp when the document was last updated. */ updated_at: Timestamp; /** * The version number of the document, used for consistency checks. * If not provided, it's assumed to be the first version. */ version?: Version; } /** * @see OptionDoc */ export declare const OptionDocSchema: z.ZodOptional, Uint8Array>; data: z.ZodCustom, Uint8Array>; description: z.ZodOptional; created_at: z.ZodBigInt; updated_at: z.ZodBigInt; version: z.ZodOptional; }, z.core.$strict>>; /** * A shorthand for a document that might or not be defined. */ export type OptionDoc = Doc | undefined; /** * @see SetDoc */ export declare const SetDocSchema: z.ZodObject<{ data: z.ZodCustom, Uint8Array>; description: z.ZodOptional; version: z.ZodOptional; }, z.core.$strict>; /** * Represents the proposed version of a document to be created or updated. * This can be validated before allowing the operation. */ export interface SetDoc { /** * The raw data of the document. */ data: RawData; /** * An optional description of the document. */ description?: Description; /** * The expected version number to ensure consistency. */ version?: Version; } /** * @see DelDoc */ export declare const DelDocSchema: z.ZodObject<{ version: z.ZodOptional; }, z.core.$strict>; /** * Represents the proposed version of a document to be deleted. * This can be validated before allowing the operation. */ export interface DelDoc { /** * The expected version number to ensure consistency. */ version?: Version; }