import type { AnyFn } from '@nano_kit/store'; import type { FormatContext, UnionToIntersection } from '../types.js'; export type { UnionToIntersection }; type ObjectParams = T extends object ? T extends AnyFn ? never : T : never; export type ParamsOf = T extends (params: infer P) => unknown ? ObjectParams

: {}; export type Format = (ctx: FormatContext, input?: I) => O; export type AnyFormat = Format; export type FormatInput = F extends Format ? I : never; export type FormatOutput = F extends Format ? O : never; export type FormatsInput>> = Partial<{ [K in keyof T]: FormatInput; }>; export type FnWithParams

= (params: P) => string | undefined; export interface IntlFormat { format(value: T, ...args: unknown[]): string; } export interface IntlFormatRange extends IntlFormat { formatRange(from: T, to: T): string; } //# sourceMappingURL=types.d.ts.map