export interface PasteOverflowState { readonly overflow: true; } export type PasteAccumState = string | PasteOverflowState | null; export interface PasteFeedResult { /** New accumulator state: text while buffering, overflow marker, or `null` when idle. */ accum: PasteAccumState; /** * The fully-assembled paste payload when an end marker closed it, else * `null` (still buffering). */ complete: string | null; /** Set when accumulation exceeded the hard paste cap and was discarded. */ error?: string | undefined; } /** * Feed one keypress fragment into the paste accumulator. * * @param accum current accumulator (`null` when idle, object after overflow) * @param input the raw keypress string for this event * @returns `null` when `input` is not part of a paste (the caller should * handle it as normal input); otherwise the updated accumulation state. */ export declare function feedPaste(accum: PasteAccumState, input: string): PasteFeedResult | null; //# sourceMappingURL=paste-accumulator.d.ts.map