/*! * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Microsoft Live Share SDK License. */ import { DeleteSharedStateAction, IAzureContainerResults, RegisterSharedSetStateAction, UnregisterSharedSetStateAction, UpdateSharedStateAction } from "../types"; /** * Response for the {@link useSharedStateRegistry} hook. */ export interface ISharedStateRegistryResponse { /** * Register a set state action callback */ registerSharedSetStateAction: RegisterSharedSetStateAction; /** * Unregister a set state action callback */ unregisterSharedSetStateAction: UnregisterSharedSetStateAction; /** * Setter callback to update the shared state */ updateSharedState: UpdateSharedStateAction; /** * Delete a shared state value */ deleteSharedState: DeleteSharedStateAction; } /** * Hook used internally to keep track of the SharedSetStateActionMap for each unique key. It sets state values for provided keys and updates components listening to the values. * * @remarks * Use this if you are building a custom `LiveShareProvider` or `AzureProvider` implementation in your app. * * @param results IAzureContainerResults response or undefined * @returns ISharedStateRegistryResponse object */ export declare const useSharedStateRegistry: (results: IAzureContainerResults | undefined) => ISharedStateRegistryResponse; //# sourceMappingURL=useSharedStateRegistry.d.ts.map