import type { ListFilter, ListOptions, PaginatedResult, SearchAttributeValue, WorkflowState, WorkflowSummary } from '../types.ts'; import type { EngineInternals } from './internals.ts'; export declare const BULK_OPERATION_BATCH_SIZE = 1000; /** List workflow summaries that match a filter, using indexes when available. */ export declare function list(internals: EngineInternals, filter?: ListFilter, options?: ListOptions): Promise>; export declare function assertWorkflowListScanWithinCap(scannedRows: number): void; /** Stream decoded workflow states that match a list filter. */ export declare function streamWorkflowStates(internals: EngineInternals, filter?: ListFilter): AsyncGenerator; /** Stream decoded workflow states in fixed-size batches for bulk operations. */ export declare function streamWorkflowStateBatches(internals: EngineInternals, filter?: ListFilter): AsyncGenerator; /** Retrieve search attributes for a workflow. */ export declare function getAttributes(internals: EngineInternals, workflowId: string): Promise | null>; /** Merge search attributes into a workflow's existing attributes, updating the index. */ export declare function setAttributes(internals: EngineInternals, workflowId: string, attributes: Record): Promise; /** Add one or more tags to a workflow. */ export declare function addTags(internals: EngineInternals, workflowId: string, ...tags: string[]): Promise; /** Remove one or more tags from a workflow. */ export declare function removeTags(internals: EngineInternals, workflowId: string, ...tags: string[]): Promise;