import { type AppState } from "./config"; export declare const ANGIE_SIDEBAR_STATE_OPEN = "open"; export declare const ANGIE_SIDEBAR_STATE_CLOSED = "closed"; export declare const STATE_STORAGE_KEY = "angie_sidebar_state"; export type AngieSidebarState = typeof ANGIE_SIDEBAR_STATE_OPEN | typeof ANGIE_SIDEBAR_STATE_CLOSED; export type AngieSidebarToggleEventData = { isOpen: boolean; sidebar: HTMLElement; skipTransition?: boolean; }; export declare function loadWidth(): number; export declare function getAngieSidebarSavedState(): AngieSidebarState | null; export declare function handleFocus(isOpen: boolean, delay: number, instance?: AppState): void; export declare function saveState(state: string): void; export declare function saveWidth(width: number): void; export declare function applyWidth(width: number): void; export declare function forceSidebarClosedDuringOAuth(): void; export declare function loadState(defaultState?: AngieSidebarState): void; export declare function applyState(state: AngieSidebarState): void; export declare function initializeResize(instance?: AppState): void; export declare function createToggleSidebarFunction(onToggle?: (isOpen: boolean, sidebar: HTMLElement, skipTransition?: boolean) => void, instance?: AppState): (force?: boolean, skipTransition?: boolean) => void; export declare function setupMessageListener(instance?: AppState): void; export declare const resetSidebarMessageListenerForTests: () => void; type InitAngieSidebarOptions = { onToggle?: (isOpen: boolean, sidebar: HTMLElement, skipTransition?: boolean) => void; skipDefaultCss?: boolean; instance?: AppState; }; export declare function initAngieSidebar(options?: InitAngieSidebarOptions): void; declare global { interface Window { toggleAngieSidebar: (force?: boolean, skipTransition?: boolean) => void; } } export {};