import { n as ServiceHandle, t as ServiceClientOptions } from "../service-rpc-BugpSF7V.mjs"; import { a as DisplayPixelFormat, c as DisplayTouchGestureConfig, i as DisplayOutputTouchCapability, l as DisplayTouchGestureThreshold, n as DisplayOutputInfo, o as DisplaySourceInfo, r as DisplayOutputSlot, s as DisplaySourceState, t as DisplayOutputBacklightCapability, u as DisplayTouchOperationMode } from "../display-types-B2YKKjx5.mjs"; //#region src/display/display-client.d.ts /** Registered name (`helper::Display::get_name()`). */ declare const DISPLAY_SERVICE_NAME = "Display"; /** RPC function names (`helper::Display::FunctionId`). */ declare const DISPLAY_FUNCTIONS: { readonly GetOutputs: "GetOutputs"; readonly GetSources: "GetSources"; readonly RegisterSource: "RegisterSource"; readonly UnregisterSource: "UnregisterSource"; readonly RequestOutput: "RequestOutput"; readonly ReleaseOutput: "ReleaseOutput"; readonly SetActiveSource: "SetActiveSource"; readonly GetActiveSource: "GetActiveSource"; readonly SetActiveSourceRole: "SetActiveSourceRole"; readonly GetActiveRole: "GetActiveRole"; readonly GetSourceRoles: "GetSourceRoles"; readonly SetTouchGestureConfig: "SetTouchGestureConfig"; readonly GetTouchGestureConfig: "GetTouchGestureConfig"; readonly SetBacklightBrightness: "SetBacklightBrightness"; readonly GetBacklightBrightness: "GetBacklightBrightness"; readonly SetBacklightOnOff: "SetBacklightOnOff"; readonly GetBacklightOnOff: "GetBacklightOnOff"; readonly LoadData: "LoadData"; readonly ResetData: "ResetData"; }; type DisplayClientOptions = ServiceClientOptions; declare function isDisplayAvailable(options?: DisplayClientOptions): boolean; declare function openDisplay(options?: DisplayClientOptions): ServiceHandle; declare function closeDisplay(handle: ServiceHandle, options?: DisplayClientOptions): void; declare function getOutputs(handle: ServiceHandle, options?: DisplayClientOptions): DisplayOutputInfo[]; declare function getSources(handle: ServiceHandle, options?: DisplayClientOptions): DisplaySourceInfo[]; declare function registerSource(handle: ServiceHandle, source: DisplaySourceInfo, options?: DisplayClientOptions): number; declare function unregisterSource(handle: ServiceHandle, sourceName: string, options?: DisplayClientOptions): void; declare function requestOutput(handle: ServiceHandle, sourceName: string, outputName: string, options?: DisplayClientOptions): void; declare function releaseOutput(handle: ServiceHandle, sourceName: string, outputName: string, options?: DisplayClientOptions): void; declare function setActiveSource(handle: ServiceHandle, outputName: string, sourceName: string, options?: DisplayClientOptions): void; declare function getActiveSource(handle: ServiceHandle, outputName: string, options?: DisplayClientOptions): string; declare function setBacklightBrightness(handle: ServiceHandle, outputId: number, brightness: number, options?: DisplayClientOptions): void; declare function getBacklightBrightness(handle: ServiceHandle, outputId: number, options?: DisplayClientOptions): number; declare function setBacklightOnOff(handle: ServiceHandle, outputId: number, on: boolean, options?: DisplayClientOptions): void; declare function getBacklightOnOff(handle: ServiceHandle, outputId: number, options?: DisplayClientOptions): boolean; declare function loadDisplayData(handle: ServiceHandle, outputId: number, options?: DisplayClientOptions): void; declare function resetDisplayData(handle: ServiceHandle, outputId: number, options?: DisplayClientOptions): void; //#endregion //#region src/display/display.d.ts type DisplayModuleOptions = DisplayClientOptions; /** * Inject a mock RPC host and reset the cached service handle (vitest / Node only). * * @param options - Client options, typically `{ host }` from `@brookesia/service/hosts/display` */ declare function configure(options: DisplayModuleOptions): void; declare const display: { /** @returns `true` when the Display service is registered */available(): boolean; /** Release the Display service binding. */ close(): void; /** @returns Physical display outputs (panel slots) */ getOutputs(): DisplayOutputInfo[]; /** @returns Registered display sources (LVGL, camera, NES, …) */ getSources(): DisplaySourceInfo[]; /** * Register a new display source. * * @param source - `{ name, role, preferred_outputs?, ... }` * @returns Source ID assigned by the service */ registerSource(source: DisplaySourceInfo): number; /** * Unregister a display source by name. * * @param sourceName - Source name; do not unregister system `'LVGL'` unless intended */ unregisterSource(sourceName: string): void; /** * Request an output for a source. * * @param sourceName - Registered source name * @param outputName - Target output name from {@link getOutputs} */ requestOutput(sourceName: string, outputName: string): void; /** * Release an output previously requested by a source. * * @param sourceName - Source name * @param outputName - Output name */ releaseOutput(sourceName: string, outputName: string): void; /** * Set the active source shown on an output. * * @param outputName - Output name * @param sourceName - Source to display */ setActiveSource(outputName: string, sourceName: string): void; /** * @param outputName - Output name * @returns Name of the currently active source */ getActiveSource(outputName: string): string; /** * Grant an output to the first registered source with the given role. * * @param outputName - Output name; empty string uses the first output * @param role - Source role to look for (e.g. `'gui'`, `'video'`) */ setActiveSourceRole(outputName: string, role: string): void; /** * @param outputName - Output name * @returns The role of the source currently active on the output */ getActiveRole(outputName: string): string; /** * @returns All registered display source roles, de-duplicated in registration order */ getSourceRoles(): string[]; /** * Configure touch gesture thresholds for an output. * * @param outputId - Output ID from {@link getOutputs} * @param config - Swipe / long-press thresholds */ setTouchGestureConfig(outputId: number, config: DisplayTouchGestureConfig): void; /** * @param outputId - Output ID * @returns Current touch gesture configuration */ getTouchGestureConfig(outputId: number): DisplayTouchGestureConfig; /** * Set backlight brightness. * * @param outputId - Output ID * @param brightness - 0–100 percent */ setBacklightBrightness(outputId: number, brightness: number): void; /** * @param outputId - Output ID * @returns Brightness 0–100 */ getBacklightBrightness(outputId: number): number; /** * Turn backlight on or off. * * @param outputId - Output ID * @param on - `true` for on */ setBacklightOnOff(outputId: number, on: boolean): void; /** * @param outputId - Output ID * @returns `true` when backlight is on */ getBacklightOnOff(outputId: number): boolean; /** * Load persisted backlight / gesture settings for an output. * * @param outputId - Output ID */ loadData(outputId: number): void; /** * Reset persisted settings for an output to defaults. * * @param outputId - Output ID */ resetData(outputId: number): void; }; //#endregion export { DISPLAY_FUNCTIONS, DISPLAY_SERVICE_NAME, type DisplayClientOptions, type ServiceHandle as DisplayHandle, type DisplayModuleOptions, type DisplayOutputBacklightCapability, type DisplayOutputInfo, type DisplayOutputSlot, type DisplayOutputTouchCapability, type DisplayPixelFormat, type DisplaySourceInfo, type DisplaySourceState, type DisplayTouchGestureConfig, type DisplayTouchGestureThreshold, type DisplayTouchOperationMode, closeDisplay, configure, display as default, getActiveSource, getBacklightBrightness, getBacklightOnOff, getOutputs, getSources, isDisplayAvailable, loadDisplayData, openDisplay, registerSource, releaseOutput, requestOutput, resetDisplayData, setActiveSource, setBacklightBrightness, setBacklightOnOff, unregisterSource }; //# sourceMappingURL=index.d.mts.map