import type { I18nConfig } from '../config/types.js';
export interface LocaleQuery {
    locale: string;
    fallbackLocale?: string;
    localeGroupId?: string;
}
export interface ParameterizedQuery {
    sql: string;
    params: unknown[];
}
/** Build a WHERE clause fragment for locale-filtered document queries. */
export declare function buildLocaleFilter(query: LocaleQuery): ParameterizedQuery;
/** Build a query that returns documents with a fallback to another locale. */
export declare function buildLocaleFallbackQuery(collection: string, locale: string, fallbackLocale: string): ParameterizedQuery;
/** Get the available locales from the i18n config. */
export declare function getLocales(config: I18nConfig): Array<{
    code: string;
    label: string;
}>;
/** Resolve the effective locale, falling back to the default if necessary. */
export declare function resolveLocale(requested: string | undefined, config: I18nConfig): string;
//# sourceMappingURL=index.d.ts.map