import { DependencyObserver } from "./DepenedencyObserver"; /** * Observable wrapper for retrieving a composition with automatic updates when the composition changes. */ export declare class GetCompositionObservable extends DependencyObserver { /** The composition ID to observe */ id: number; /** * Creates a new composition observable. * @param id - The composition concept ID * @param format - Output format (JUSTDATA, DATAID, NORMAL) */ constructor(id: number, format?: number); /** * Fetches composition data and sets up change listeners. * @returns The formatted composition data */ bind(): Promise; /** * Builds the composition data in the specified format. * @returns The formatted composition data */ build(): Promise; } /** * Creates an observable that tracks a composition and updates subscribers when it changes. * @param id - The composition concept ID to observe * @param format - Output format (JUSTDATA, DATAID, NORMAL) * @returns Observable instance for the composition * * @example * const observer = GetCompositionListener(123, JUSTDATA); * observer.subscribe((data) => console.log(data)); */ export declare function GetCompositionListener(id: number, format?: number): GetCompositionObservable;