/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { FlowchartOrientation } from "./toolbar.js"; /** * The orientation the viewer picked in the flowchart a key names — or, until * they pick, the one the payload gives — and how to pick another: a write * every flowchart under that key follows. * * @param key - The flowchart's orientation key (`flowchartKeys(name).orientation`) * @param initial - The payload's `orientation`, LR when it gives none: shown until the viewer picks * @returns The orientation shown, and the write that picks another */ export declare function useViewerOrientation(key: string, initial: FlowchartOrientation): [FlowchartOrientation, (orientation: FlowchartOrientation) => void]; //# sourceMappingURL=orientation.d.ts.map