import type { WorkbookHandle as WasmWorkbookHandle } from "./xlcore_wasm.js"; import type { AutoFilterColumnInfo, AutoFilterColumnPatch, AutoFilterCustomCriterion, AutoFilterInfo, CalcProperties, CalcPropertiesPatch, ChartExInfo, ChartExPatch, ChartExUpdate, ChartInfo, ChartPatch, ChartUpdate, CommentInfo, CommentPatch, ConditionalFormatRuleInfo, ConditionalFormatRulePatch, DataValidationInfo, DataValidationPatch, DefinedNameInfo, DefinedNamePatch, HyperlinkInfo, HyperlinkPatch, ImageInfo, ImagePatch, ImageUpdate, MergeInfo, NamedStyleInfo, NamedStylePatch, ShapeInfo, ShapePatch, PivotGrid, PivotInfo, PivotPatch, PivotUpdate, SparklineGroupInfo, SparklineGroupPatch, TableInfo, TablePatch, ThreadedNoteInfo, ThreadedNotePatch, WorkbookProperties, WorkbookPropertiesPatch, WorkbookProtectionInfo, WorkbookProtectionPatch } from "./api-schema/index.js"; import type { SheetRef } from "./api-refs.js"; declare abstract class SheetScopedCollection { protected readonly handle: WasmWorkbookHandle; protected readonly sheetRef: SheetRef; constructor(handle: WasmWorkbookHandle, sheetRef: SheetRef); protected get sheet(): string; } export declare class MergeCollection extends SheetScopedCollection { list(): MergeInfo[]; add(ref: string): MergeInfo; remove(ref: string): MergeInfo | null; } export declare class HyperlinkCollection extends SheetScopedCollection { list(): HyperlinkInfo[]; set(ref: string, patch: HyperlinkPatch): HyperlinkInfo; remove(ref: string): HyperlinkInfo[]; } export declare class CommentCollection extends SheetScopedCollection { list(): CommentInfo[]; set(ref: string, patch: CommentPatch): CommentInfo; remove(ref: string): CommentInfo[]; } export declare class ThreadedNotesCollection extends SheetScopedCollection { list(): ThreadedNoteInfo[]; add(ref: string, patch: ThreadedNotePatch): ThreadedNoteInfo; reply(parentId: string, patch: ThreadedNotePatch): ThreadedNoteInfo; remove(ref: string): ThreadedNoteInfo[]; } export declare class DataValidationCollection extends SheetScopedCollection { list(): DataValidationInfo[]; set(ref: string, patch: DataValidationPatch): DataValidationInfo; remove(ref: string): DataValidationInfo[]; } export declare class ConditionalFormatCollection extends SheetScopedCollection { list(): ConditionalFormatRuleInfo[]; set(ref: string, patch: ConditionalFormatRulePatch): ConditionalFormatRuleInfo; clear(ref: string): ConditionalFormatRuleInfo[]; } export declare class AutoFilterAccessor extends SheetScopedCollection { get(): AutoFilterInfo | null; set(ref: string): AutoFilterInfo; remove(): AutoFilterInfo | null; setColumn(patch: AutoFilterColumnPatch): AutoFilterColumnInfo; setColumnValues(columnOffset: number, values: string[], opts?: { blank?: boolean; hiddenButton?: boolean; showButton?: boolean; }): AutoFilterColumnInfo; setColumnTop10(columnOffset: number, val: number, opts?: { top?: boolean; percent?: boolean; hiddenButton?: boolean; showButton?: boolean; }): AutoFilterColumnInfo; setColumnCustom(columnOffset: number, criteria: AutoFilterCustomCriterion[], opts?: { logicalAnd?: boolean; hiddenButton?: boolean; showButton?: boolean; }): AutoFilterColumnInfo; removeColumn(columnOffset: number): AutoFilterColumnInfo | null; setSort(columnOffset: number, opts?: { descending?: boolean; }): void; clearSort(): void; } export declare class TableCollection extends SheetScopedCollection { list(): TableInfo[]; set(patch: TablePatch): TableInfo; remove(name: string): TableInfo | null; } export declare class ChartCollection extends SheetScopedCollection { list(): ChartInfo[]; set(patch: ChartPatch): ChartInfo; update(id: string, update: ChartUpdate): ChartInfo; remove(id: string): ChartInfo | null; } export declare class ChartExCollection extends SheetScopedCollection { list(): ChartExInfo[]; set(patch: ChartExPatch): ChartExInfo; update(id: string, update: ChartExUpdate): ChartExInfo; remove(id: string): ChartExInfo | null; } export declare class ImageCollection extends SheetScopedCollection { list(): ImageInfo[]; set(patch: ImagePatch): ImageInfo; update(id: string, update: ImageUpdate): ImageInfo; remove(id: string): ImageInfo | null; } export declare class ShapeCollection extends SheetScopedCollection { list(): ShapeInfo[]; set(patch: ShapePatch): ShapeInfo; remove(id: string): ShapeInfo | null; } export declare class SparklineGroupCollection extends SheetScopedCollection { list(): SparklineGroupInfo[]; set(patch: SparklineGroupPatch): SparklineGroupInfo; remove(id: string): SparklineGroupInfo | null; } export declare class PivotCollection extends SheetScopedCollection { list(): PivotInfo[]; set(patch: PivotPatch): PivotInfo; preview(patch: PivotPatch): PivotGrid; update(id: string, update: PivotUpdate): PivotInfo; remove(id: string): PivotInfo | null; } export declare class WorkbookPivots { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): PivotInfo[]; } export declare class WorkbookDefinedNames { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): DefinedNameInfo[]; set(patch: DefinedNamePatch): DefinedNameInfo; remove(name: string, scope?: string | null): DefinedNameInfo | null; } export declare class WorkbookNamedStyles { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): NamedStyleInfo[]; set(patch: NamedStylePatch): NamedStyleInfo; remove(name: string): NamedStyleInfo | null; } export declare class WorkbookTables { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): TableInfo[]; set(patch: TablePatch): TableInfo; remove(name: string): TableInfo | null; } export declare class WorkbookCharts { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): ChartInfo[]; } export declare class WorkbookImages { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): ImageInfo[]; } export declare class WorkbookSparklineGroups { private readonly handle; constructor(handle: WasmWorkbookHandle); list(): SparklineGroupInfo[]; } export declare class WorkbookPropertiesAccessor { private readonly handle; constructor(handle: WasmWorkbookHandle); get(): WorkbookProperties; set(patch: WorkbookPropertiesPatch): WorkbookProperties; } export declare class CalcPropertiesAccessor { private readonly handle; constructor(handle: WasmWorkbookHandle); get(): CalcProperties; set(patch: CalcPropertiesPatch): CalcProperties; } export declare class WorkbookProtectionAccessor { private readonly handle; constructor(handle: WasmWorkbookHandle); get(): WorkbookProtectionInfo | null; set(patch: WorkbookProtectionPatch): WorkbookProtectionInfo; remove(): WorkbookProtectionInfo | null; } export {};