import type { TOptions } from 'i18next'; import { Json } from '@traversable/json'; export type JustURI = typeof JustURI; export declare const JustURI: unique symbol; export type NothingURI = typeof NothingURI; export declare const NothingURI: unique symbol; export type Maybe = Just | Nothing; export interface Just { _tag: JustURI; value: T; } export interface Nothing { _tag: NothingURI; } export declare const isJust: (x: unknown) => x is Just; export declare const isNothing: (x: unknown) => x is Nothing; export declare function just(x: T): Maybe; export declare function nothing(): Maybe; export type LeftURI = typeof LeftURI; export declare const LeftURI: unique symbol; export type RightURI = typeof RightURI; export declare const RightURI: unique symbol; export type Either = Left | Right; export interface Left { _tag: LeftURI; left: L; } export interface Right { _tag: RightURI; right: R; } export declare const isLeft: (x: unknown) => x is Left; export declare const isRight: (x: unknown) => x is Right; export declare function left(x: L): Left; export declare function right(x: R): Right; export declare function either(onLeft: (x: L) => T, onRight: (x: R) => T): (x: Either) => T; export type GroupedTypeScriptPluralKeys = Record>; export declare namespace transform { interface Options extends TOptions { pluralSeparator?: string; formatCmd?: string; } } export declare const isPluralKey: (key: string, { pluralSeparator }: TOptions) => boolean; export declare const isPluralEntry: (options: transform.Options) => (entry: [string, unknown]) => entry is [string, Json.Scalar]; export declare function rmPluralization(entry: [string, unknown], options: transform.Options): Maybe; export declare const isJsonFile: (x: string) => boolean; export declare const isYamlFile: (x: string) => boolean; export declare const isTsDeclarationFile: (x: string) => boolean; export declare const isTsFile: (x: string) => boolean; export declare function mergeJsdocs(jsdocs: string[], OFFSET: string): string | string[]; //# sourceMappingURL=utils.d.ts.map