'use client'; import { FullSchemaIndex } from "../schema.cjs"; //#region src/sql/indexes.d.ts type IndexTypeHint = { indexType: string; }; type IndexDropHint = { isPrimary: boolean; isUnique: boolean; }; declare function isIndexSupported(index: IndexTypeHint): boolean; /** * Doesn't necessarily decide whether the index can be dropped but can be * used to not even try dropping indexes that _definitely_ cannot be dropped */ declare function isIndexProbablyDroppable(index: IndexDropHint): boolean; type DuplicateIndexGroup = { kind: "exact"; indexes: FullSchemaIndex[]; } | { kind: "prefix"; indexes: FullSchemaIndex[]; sharedPrefix: FullSchemaIndex["keyColumns"]; }; declare function groupDuplicateIndexes(indexes: FullSchemaIndex[]): DuplicateIndexGroup[]; //#endregion export { DuplicateIndexGroup, groupDuplicateIndexes, isIndexProbablyDroppable, isIndexSupported }; //# sourceMappingURL=indexes.d.cts.map