import { Name, Reversible } from "../generalTypes.js"; import { MigrationOptions } from "../../migrationOptions.js"; import { RevokeOnObjectsOptions, SchemaPrivilege, WithGrantOption } from "./shared.js"; import { RevokeOnSchemasOptions } from "./revokeOnSchemas.js"; //#region src/operations/grants/grantOnSchemas.d.ts interface OnlyGrantOnSchemasOptions { privileges: SchemaPrivilege | SchemaPrivilege[] | 'ALL'; schemas: string[] | string; roles: Name | Name[]; } type GrantOnSchemasOptions = OnlyGrantOnSchemasOptions & WithGrantOption & RevokeOnObjectsOptions; type GrantOnSchemasFn = (grantOptions: GrantOnSchemasOptions & RevokeOnSchemasOptions) => string; type GrantOnSchemas = Reversible; declare function grantOnSchemas(mOptions: MigrationOptions): GrantOnSchemas; //#endregion export { GrantOnSchemas, GrantOnSchemasFn, GrantOnSchemasOptions, OnlyGrantOnSchemasOptions, grantOnSchemas };