import { KeyPosition } from '@tolgee/core'; import { Size } from './tools'; import { ScreenshotInterface } from './useGallery'; import { HttpError } from '../../client/HttpError'; type AddScreenshot = (data: Omit, size: Size, positions: KeyPosition[]) => void; export type TakeArgs = { key: string; ns: string; revert: () => void; onTakingScreenshotChange: (taking: boolean) => void; screenSize: Size; }; type UploadResult = { data: Omit; imgSize: Size; positions: KeyPosition[]; }; export declare const useExtensionScreenshotUpload: (findPositions: (key: string, ns: string) => KeyPosition[], addScreenshot: AddScreenshot) => { take: import("react-query").UseMutateAsyncFunction; loading: boolean; error: HttpError; }; export {};