import type OpenFin from '@openfin/core'; export type ViewOptionsConsumer = 'appearance' | 'controls' | 'shared'; /** * Reads view options for the custom view-tab feature, optionally instrumented in debug builds. * * Collection is active only when the build-time `LOG_DEBUG` constant is true — set via * `OF__WORKSPACE_LOG_DEBUG=true` at build time (including PR preview builds where that env is enabled). * Tests may also enable collection with `globalThis.LOG_DEBUG = true` when the build constant is undefined. * Production builds call `view.getOptions()` directly with no marks or logs. * * Baseline comparison before de-duplication should primarily use IPC / measure count: expect two `getOptions` * calls and two Performance Timeline entries per view (appearance + controls). The de-duplicated path emits one * entry with the `shared` consumer. Per-call baseline durations are secondary because two reads can overlap. * * Inspect entries in DevTools by filtering measures named `of-workspace-view-tab-get-options-*`. The Performance * Timeline duration is authoritative; structured logs are the human-readable companion. * * Each debug invocation calls `view.getOptions()` exactly once — no caching or de-duplication on this branch. */ export declare const getViewOptions: (view: OpenFin.View, consumer: ViewOptionsConsumer) => Promise;