/** * The separator between a record's id and the per-row discriminator. */ export declare const ROW_ID_SEPARATOR = "#"; /** * The `source_id` of one row of a record: `#`. * * @throws When the record id already holds the separator or the discriminator is empty. */ export declare function rowSourceID(recordID: string, discriminator: string): string; /** * The discriminator drawn from a row's text: the first 12 hex characters of `sha256(raw)`. * * Two rows of one record with the same text get the same discriminator. * A writer using it skips a text it has already written for that record. */ export declare function rawTextDiscriminator(raw: string): string; /** * The row ids one renderer run has written, each `#`. * * A renderer that draws its records with replacement renders some record and text twice. * The second copy would repeat both the text and the id, so {@linkcode RenderedRowIDs.claim} refuses it. */ export declare class RenderedRowIDs { #private; /** * The id for a row of `recordID` with text `raw`, or `null` when this run already wrote that row. */ claim(recordID: string, raw: string): string | null; } /** * The record a `source_id` belongs to: the part before the last `#`, or the whole id when it holds none. */ export declare function recordIDOf(sourceID: string): string; /** * {@linkcode recordIDOf} as a DuckDB expression over a `VARCHAR` column expression. */ export declare function recordIDSQL(column: string): string; //# sourceMappingURL=record-id.d.ts.map