import type { Resolver } from "../lib/resolver.js"; import type { FailedTask } from "../lib/task.svelte.js"; import type { Schema } from "../core/index.js"; export interface Labels { submit: {}; "array-schema-missing-items": {}; yes: {}; no: {}; "multi-schema-option-label-with-title": { title: string; index: number; }; "multi-schema-option-label": { index: number; }; "remove-object-property": {}; "add-object-property": {}; "remove-array-item": {}; "copy-array-item": {}; "move-array-item-up": {}; "move-array-item-down": {}; "add-array-item": {}; "validation-process-error": { error: FailedTask; }; "component-not-found": { type: string; }; "key-input-title": { name: string; }; "additional-property": {}; "unknown-field-error": { schema: Schema; }; } export type Label = keyof Labels; export type Translator = string | ((params: Params) => string); export type TranslatorDefinitions = { [K in keyof R]: Translator; }; export type Translation = Resolver, Partial>>; export type Translate = (label: L, params: Labels[L]) => string; export declare function createTranslate(translation: Resolver, Partial>>): (label: L, params: Ls[L]) => string;