/// import { UiProps } from '@tolgee/core'; import { TolgeeFormat } from '@tginternal/editor'; import { StateType } from '../State/translationStates'; import { HttpError } from '../../client/HttpError'; type FormTranslations = { [key: string]: { value: TolgeeFormat; state: StateType; }; }; type DialogProps = { keyName: string; defaultValue: string; onClose: () => void; uiProps: UiProps; fallbackNamespaces: string[]; namespace: string; children: React.ReactNode; }; export declare const DialogProvider: ({ children, ...props }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element, useDialogActions: () => { onInputChange: (key: string, value: TolgeeFormat) => void; onStateChange: (key: string, value: StateType) => void; handleUploadImages: (files: File[]) => Promise; handleTakeScreenshot: () => void; handleRemoveScreenshot: (id: number) => void; onSave: () => Promise; onClose: () => void; onSelectedLanguagesChange: (languages: string[]) => void; setContainer: import("react").Dispatch>; setUseBrowserWindow: import("react").Dispatch>; setScreenshotDetail: import("react").Dispatch>; setSelectedNs: import("react").Dispatch>; setTags: import("react").Dispatch>; setIsPlural: import("react").Dispatch>; setPluralArgName: import("react").Dispatch>; setMaxCharLimit: import("react").Dispatch>; }, useDialogContext: (selector: (state: { readonly input: string; readonly fallbackNamespaces: string[]; readonly uiProps: UiProps; readonly selectedNs: string; readonly loading: boolean; readonly saving: boolean; readonly success: boolean; readonly error: Error; readonly availableLanguages: { base: boolean; flagEmoji?: string; id: number; name: string; originalName?: string; tag: string; }[]; readonly selectedLanguages: string[]; readonly formDisabled: boolean; readonly readOnly: boolean; readonly keyData: { branch?: string; contextPresent: boolean; createdAt: number; keyDescription?: string; keyId: number; keyIsPlural: boolean; keyMaxCharLimit?: number; keyName: string; keyNamespace?: string; keyNamespaceId?: number; keyPluralArgName?: string; keyTags: { id: number; name: string; }[]; screenshotCount: number; screenshots?: { createdAt?: string; fileUrl: string; filename: string; height?: number; id: number; keyReferences: { keyId: number; keyName: string; keyNamespace?: string; originalText?: string; position?: { height: number; width: number; x: number; y: number; }; }[]; location?: string; middleSized?: string; middleSizedUrl?: string; thumbnail: string; thumbnailUrl: string; width?: number; }[]; tasks?: { done: boolean; languageId: number; languageTag: string; number: number; type: "TRANSLATE" | "REVIEW"; userAssigned: boolean; }[]; translations: { [key: string]: { activeSuggestionCount: number; auto: boolean; commentCount: number; fromTranslationMemory: boolean; id?: number; labels?: { color: string; description?: string; id: number; name: string; }[]; mtProvider?: "GOOGLE" | "AWS" | "DEEPL" | "AZURE" | "BAIDU" | "PROMPT"; outdated: boolean; state: "UNTRANSLATED" | "TRANSLATED" | "REVIEWED" | "DISABLED"; suggestions?: { author: { avatar?: { large: string; thumbnail: string; }; deleted: boolean; id: number; name?: string; username: string; }; id: number; isPlural: boolean; state: "ACTIVE" | "ACCEPTED" | "DECLINED"; translation?: string; }[]; text?: string; totalSuggestionCount: number; unresolvedCommentCount: number; }; }; }; readonly translationsForm: FormTranslations; readonly container: Element; readonly useBrowserWindow: boolean; readonly takingScreenshot: boolean; readonly screenshotsUploading: boolean; readonly screenshots: import("./useGallery").ScreenshotInterface[]; readonly screenshotDetail: import("./useGallery").ScreenshotInterface; readonly linkToPlatform: string; readonly keyExists: boolean; readonly maxCharLimit: number; readonly tags: string[]; readonly permissions: { canEditTags: boolean; canViewScreenshots: boolean; canUploadScreenshots: boolean; canDeleteScreenshots: boolean; canSubmitForm: true | { done: boolean; languageId: number; languageTag: string; number: number; type: "TRANSLATE" | "REVIEW"; userAssigned: boolean; }; canSendBigMeta: boolean; canEditPlural: boolean; canEditCharLimit: boolean; canEditState: (language: string) => boolean; canEditTranslation: (language: string) => boolean; }; readonly canTakeScreenshots: boolean; readonly isPlural: boolean; readonly _pluralArgName: string; readonly pluralArgName: string; readonly pluralsSupported: boolean; readonly icuPlaceholders: boolean; readonly submitError: HttpError; readonly filterTagMissing: boolean; readonly isOverCharLimit: boolean; }) => SelectorReturn) => SelectorReturn; export {};