import { EventEmitter } from '../../../stencil-public-runtime';
import { DataUnit, Record, UnitMetadata } from '@sankhyalabs/core';
import InMemoryLoader from '../../../lib/dataUnit/InMemoryLoader';
import { IGridConfig } from '@sankhyalabs/ezui/src/components/ez-grid/controller/EzGridController';
import { IOption } from '@sankhyalabs/ezui/src/components/ez-search/ez-search';
export declare class PesquisaGrid {
  private _pesquisaFetcher;
  /**
   * Campos que representam as colunas da grade.
   */
  metadata: UnitMetadata;
  /**
   * Registros da grade
   */
  dataSource: Record[];
  /**
   * Campo que representa a chave primária do registro
   */
  pkField: string;
  /**
   * Campo que representa a descrição do registro
   */
  descriptionField: string;
  /**
   * Nome da entidade representada na grade
   */
  entityName: string;
  /**
   * Define se deve carregar configurações da grade
   */
  shouldLoadConfig: boolean;
  _gridConfig: IGridConfig;
  _inMemoryLoader: InMemoryLoader;
  _dataunit: DataUnit;
  pesquisaGridSelectItem: EventEmitter<IOption>;
  observeDataSource(newValue: Record[]): void;
  observeMetadata(): void;
  observeShouldLoadConfig(newValue: boolean): Promise<void>;
  private loadGridConfig;
  private initializeDataUnit;
  private handleDbClick;
  private handleConfigChanged;
  render(): any;
}
