import React from 'react';
import type { KeyringContextState, KeyringContextActions, ServiceConfig } from '@w3ui/keyring-core';
export { KeyringContextState, KeyringContextActions };
export type KeyringContextValue = [
    state: KeyringContextState,
    actions: KeyringContextActions
];
export declare const keyringContextDefaultValue: KeyringContextValue;
export declare const KeyringContext: React.Context<KeyringContextValue>;
export interface KeyringProviderProps extends ServiceConfig {
    children?: JSX.Element;
}
/**
 * Key management provider.
 */
export declare function KeyringProvider({ children, servicePrincipal, connection }: KeyringProviderProps): JSX.Element;
/**
 * Use the scoped keyring context state from a parent KeyringProvider.
 */
export declare function useKeyring(): KeyringContextValue;
