import type { FloorMapSceneElement, FloorMapViewConfig } from '../types';
import type { PutShopFloorPlanBody, ShopFloorPlanDetail } from './shopFloorPlanTypes';
export declare function pickFloorPlanDetail(res: unknown): ShopFloorPlanDetail | null;
export declare function isShopFloorPlanNotFoundResponse(res: unknown): boolean;
export declare function isHttpNotFoundError(err: unknown): boolean;
export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
export declare function parseLayoutFieldToViewConfigPatch(raw: unknown): Partial<FloorMapViewConfig> | null;
export declare function floorMapSavedConfigToRemotePatch(config: FloorMapViewConfig): Partial<FloorMapViewConfig>;
export declare function mergeFloorPlanViewRemote(base: FloorMapViewConfig, remote: Partial<FloorMapViewConfig>): FloorMapViewConfig;
export declare function viewConfigToLayoutPayload(config: FloorMapViewConfig): Record<string, unknown>;
export declare function inferCanvasSizeFromScene(sceneElements: FloorMapSceneElement[], fallbackWidth?: number, fallbackHeight?: number, padding?: number): {
    w: number;
    h: number;
};
export declare function buildFloorPlanPutBody(config: FloorMapViewConfig, options: {
    canvasWidth?: number;
    canvasHeight?: number;
    code?: string;
    name?: Record<string, string>;
    sort?: number;
    status?: number;
}): PutShopFloorPlanBody;
