export declare const ELEMENT_INSTALL_TARGET_MAX_AGE = 5000; export declare const STUDIO_PROTOCOL_TARGET_MAX_AGE = 4000; export type ElementInstallTarget = { requestId: string | null; clientId: string; compositionFile: string | null; compositionId: string | null; lastFocusedAt: number | null; readOnly: boolean; studioUrl: string; updatedAt: number; }; export type StudioProtocolTargetPurpose = 'install-element' | 'set-license-key' | 'add-element-library'; type StudioProtocolTarget = { readonly id: string; readonly origin: string; readonly purpose: StudioProtocolTargetPurpose; readonly target: ElementInstallTarget; readonly expiresAt: number; }; export declare const updateElementInstallTarget: (newTarget: Omit) => void; export declare const subscribeToElementInstallTargets: (listener: (target: ElementInstallTarget) => void) => () => void; export declare const getElementInstallTargetByClientId: (clientId: string) => ElementInstallTarget | null; export declare const getElementInstallTarget: (requestId: string | null, targets?: Map) => ElementInstallTarget | null; export declare const issueStudioProtocolTarget: ({ now, origin, purpose, target, }: { readonly now: number; readonly origin: string; readonly purpose: StudioProtocolTargetPurpose; readonly target: ElementInstallTarget; }) => StudioProtocolTarget; export declare const consumeStudioProtocolTarget: ({ now, origin, purpose, targetId, }: { readonly now: number; readonly origin: string; readonly purpose: StudioProtocolTargetPurpose; readonly targetId: string; }) => ElementInstallTarget | null; export declare const clearElementInstallStateForTests: () => void; export {};