import { CoID, LocalNode, RawBinaryCoStream, RawCoValue } from "cojson"; export type CoJsonType = "comap" | "costream" | "colist" | "coplaintext"; export type ExtendedCoJsonType = "image" | "record" | "account" | "group" | "file"; type JSON = string | number | boolean | null | JSON[] | { [key: string]: JSON; }; type JSONObject = { [key: string]: JSON; }; type ResolvedImageDefinition = { originalSize: [number, number]; placeholderDataURL?: string; [res: `${number}x${number}`]: RawBinaryCoStream["id"]; }; export declare const isBrowserImage: (coValue: JSONObject) => coValue is ResolvedImageDefinition; export type ResolvedGroup = { readKey: string; [key: string]: JSON; }; export declare const isGroup: (coValue: JSONObject) => coValue is ResolvedGroup; export type ResolvedAccount = { profile: { name: string; }; [key: string]: JSON; }; export declare function resolveCoValue(coValueId: CoID, node: LocalNode): Promise<{ value: RawCoValue; snapshot: JSONObject; type: CoJsonType | null; extendedType: ExtendedCoJsonType | undefined; } | { value: undefined; snapshot: "unavailable"; type: null; extendedType: undefined; }>; export declare function useResolvedCoValue(coValueId: CoID, node: LocalNode): { value: RawCoValue; snapshot: JSONObject; type: CoJsonType | null; extendedType: ExtendedCoJsonType | undefined; } | { value: undefined; snapshot: "unavailable"; type: null; extendedType: undefined; } | { value: undefined; snapshot: undefined; type: undefined; extendedType: undefined; }; export declare function useResolvedCoValues(coValueIds: CoID[], node: LocalNode): ({ value: RawCoValue; snapshot: JSONObject; type: CoJsonType | null; extendedType: ExtendedCoJsonType | undefined; } | { value: undefined; snapshot: "unavailable"; type: null; extendedType: undefined; })[]; export {}; //# sourceMappingURL=use-resolve-covalue.d.ts.map