import type * as SarvamAI from "../index.mjs"; /** * A marker that starts a new document. */ export interface DocAiSplitTrigger { type: DocAiSplitTrigger.Type; match?: SarvamAI.DocAiSplitTriggerMatch | undefined; /** For QR codes and barcodes only. `value_changes` starts a new document when the code value changes. */ split_when?: DocAiSplitTrigger.SplitWhen | undefined; where?: DocAiSplitTrigger.Where | undefined; /** Marker-page handling. */ trigger_page?: DocAiSplitTrigger.TriggerPage | undefined; /** Barcode formats to read. */ formats?: DocAiSplitTrigger.Formats.Item[] | undefined; /** Required for `photo` markers. Describes the image that starts a document. */ description?: string | undefined; } export declare namespace DocAiSplitTrigger { const Type: { readonly QrCode: "qr_code"; readonly Barcode: "barcode"; readonly BlankPage: "blank_page"; readonly Text: "text"; readonly Photo: "photo"; }; type Type = (typeof Type)[keyof typeof Type]; /** For QR codes and barcodes only. `value_changes` starts a new document when the code value changes. */ const SplitWhen: { readonly EveryMatch: "every_match"; readonly ValueChanges: "value_changes"; }; type SplitWhen = (typeof SplitWhen)[keyof typeof SplitWhen]; const Where: { readonly Anywhere: "anywhere"; readonly TopOfPage: "top_of_page"; }; type Where = (typeof Where)[keyof typeof Where]; /** Marker-page handling. */ const TriggerPage: { readonly FirstPage: "first_page"; readonly SeparatorExclude: "separator_exclude"; readonly SeparatorKeep: "separator_keep"; }; type TriggerPage = (typeof TriggerPage)[keyof typeof TriggerPage]; type Formats = Formats.Item[]; namespace Formats { const Item: { readonly Code128: "code128"; readonly Code39: "code39"; readonly Ean13: "ean13"; readonly Ean8: "ean8"; readonly UpcA: "upc_a"; readonly Itf: "itf"; readonly Pdf417: "pdf417"; readonly Datamatrix: "datamatrix"; }; type Item = (typeof Item)[keyof typeof Item]; } }