import { IndexCommand, PrimaryCommand, UniqueCommand } from './Command'; /** * Fluent configuration of an index / unique / primary command, returned by * `table.index(...)`, `table.unique(...)` and `table.primary(...)`. Allows * overriding the auto-generated index name: * * table.index(['organizationId', 'discipline']).name('idx_categories_lookup') */ export declare class IndexDefinition { private readonly command; constructor(command: IndexCommand | UniqueCommand | PrimaryCommand); /** Overrides the generated index/constraint name. */ name(name: string): this; /** * Sets the index method/access-type (e.g. `.using('gin')` for an INT[] GIN * index). PostgreSQL emits `USING `; SQLite and MySQL ignore it. * Only meaningful on `table.index(...)` commands. */ using(method: string): this; }