import './template-loading.js';
import { LitElement } from 'lit';
import type { EdgelessPageBlockComponent } from '../../../edgeless-page-block.js';
import type { Template } from './template-type.js';
declare const EdgelessTemplatePanel_base: typeof LitElement & import("@blockeditor/global/utils").Constructor<import("@blockeditor/lit").DisposableClass>;
export declare class EdgelessTemplatePanel extends EdgelessTemplatePanel_base {
    static templates: {
        list: (category: string) => Promise<any>;
        categories: () => Promise<string[]>;
        search: (keyword: string, cateName?: string | undefined) => Promise<Template[]>;
    };
    static styles: import("lit").CSSResult;
    private _currentCategory;
    private _loadingTemplate;
    private _searchKeyword;
    private _loading;
    private _categories;
    private _templates;
    private _fetchJob;
    edgeless: EdgelessPageBlockComponent;
    private get _service();
    connectedCallback(): void;
    firstUpdated(): void;
    private _initCategory;
    private _fetch;
    private _updateTemplates;
    private _getLocalSelectedCategory;
    private _createTemplateJob;
    private _insertTemplate;
    private _closePanel;
    private _updateSearchKeyword;
    render(): import("lit").TemplateResult<1>;
}
declare global {
    interface HTMLElementTagNameMap {
        'edgeless-templates-panel': EdgelessTemplatePanel;
    }
}
export {};
//# sourceMappingURL=template-panel.d.ts.map