import type { PickByType } from '@sequelize/utils'; import type { StringKeyOf } from 'type-fest'; import type { AbstractDialect } from '../abstract-dialect/dialect.js'; import type { NormalizedReplicationOptions, RawConnectionOptions } from '../sequelize'; import type { PersistedSequelizeOptions } from '../sequelize.internals.js'; export declare function normalizeReplicationConfig(dialect: Dialect, connectionOptions: RawConnectionOptions, replicationOption: PersistedSequelizeOptions['replication']): NormalizedReplicationOptions; export declare function parseCommonConnectionUrlOptions(options: { url: URL | string; /** * The list of protocols that the URL can use */ allowedProtocols: readonly string[]; /** * The name of the dialect-specific connection option to use for the hostname */ hostname: keyof PickByType; /** * The name of the dialect-specific connection option to use for the port */ port: keyof PickByType; /** * The name of the dialect-specific connection option to use for the database name */ pathname: keyof PickByType; /** * The name of the dialect-specific connection option to use for the username * * If not provided, the username will be ignored */ username?: keyof PickByType; /** * The name of the dialect-specific connection option to use for the password * * If not provided, the password will be ignored */ password?: keyof PickByType; /** * The string options that can be set via the search parameters in the URL */ stringSearchParams?: ReadonlyArray>>; /** * The boolean options that can be set via the search parameters in the URL. * Will be parsed as a boolean. */ booleanSearchParams?: ReadonlyArray>>; /** * The number options that can be set via the search parameters in the URL. * Will be parsed as a JS number. */ numberSearchParams?: ReadonlyArray>>; }): TConnectionOptions; //# sourceMappingURL=connection-options.d.ts.map