import * as React from 'react'; import GraphQLEditor from './Playground/GraphQLEditor'; import { ISettings } from '../types'; import { GraphQLConfig } from '../graphqlConfig'; import { ApolloLink } from 'apollo-link'; import { GraphQLSchema } from 'graphql'; import { Session } from '../state/sessions/reducers'; export interface Response { resultID: string; date: string; time: Date; } export interface Props { endpoint: string; sessionEndpoint: string; subscriptionEndpoint?: string; projectId?: string; shareEnabled?: boolean; fixedEndpoint?: boolean; onSuccess?: (graphQLParams: any, response: any) => void; isEndpoint?: boolean; isApp?: boolean; onChangeEndpoint?: (endpoint: string) => void; share?: (state: any) => void; shareUrl?: string; onChangeSubscriptionsEndpoint?: (endpoint: string) => void; getRef?: (ref: Playground) => void; graphqlConfig?: any; onSaveSettings?: () => void; onChangeSettings?: (settingsString: string) => void; onSaveConfig: () => void; onChangeConfig: (configString: string) => void; onUpdateSessionCount?: () => void; config: GraphQLConfig; configString: string; configIsYaml: boolean; canSaveConfig: boolean; fixedEndpoints: boolean; headers?: { [key: string]: string; }; configPath?: string; createApolloLink?: (session: Session, subscriptionEndpoint?: string) => ApolloLink; workspaceName?: string; schema?: GraphQLSchema; } export interface ReduxProps { selectTabIndex: (index: number) => void; selectNextTab: () => void; selectPrevTab: () => void; closeSelectedTab: () => void; newSession: (endpoint: string, reuseHeaders: boolean) => void; initState: (workspaceId: string, endpoint: string) => void; saveConfig: () => void; saveSettings: () => void; setTracingSupported: (value: boolean) => void; injectHeaders: (headers: string | { [key: string]: string; } | void, endpoint: string) => void; setConfigString: (str: string) => void; schemaFetchingError: (endpoint: string, error: string) => void; schemaFetchingSuccess: (endpoint: string, tracingSupported: boolean, isPollingSchema: boolean) => void; isReloadingSchema: boolean; isPollingSchema: boolean; isConfigTab: boolean; isSettingsTab: boolean; isFile: boolean; historyOpen: boolean; file: string; sessionHeaders?: any; settings: ISettings; settingsString: string; } export interface State { schema?: GraphQLSchema; } export interface CursorPosition { line: number; ch: number; } export { GraphQLEditor }; export declare class Playground extends React.PureComponent { static defaultProps: { shareEnabled: boolean; }; apolloLinks: { [sessionId: string]: any; }; observers: { [sessionId: string]: any; }; graphiqlComponents: any[]; getSchema: any; private backoff; private initialIndex; private mounted; private initialSchemaFetch; constructor(props: Props & ReduxProps); UNSAFE_componentWillMount(): void; componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: Props & ReduxProps): void; schemaGetter(propsInput?: Props & ReduxProps): Promise; render(): JSX.Element; renderHistoryPopup(): JSX.Element; setRef: (index: number, ref: any) => void; closeTab: () => void; nextTab: () => void; prevTab: () => void; switchTab: (index: number) => void; handleSaveConfig: () => void; handleSaveSettings: () => void; private createSession; private updateSchema; get httpApiPrefix(): string; } declare const _default: import("react-redux").ConnectedComponent & Props & ReduxProps, "headers" | "endpoint" | "shareUrl" | "fixedEndpoint" | "configString" | "schema" | "share" | "ref" | "getRef" | "key" | "shareEnabled" | "isApp" | "subscriptionEndpoint" | "projectId" | "onSuccess" | "isEndpoint" | "onChangeEndpoint" | "onChangeSubscriptionsEndpoint" | "graphqlConfig" | "onSaveSettings" | "onChangeSettings" | "onSaveConfig" | "onChangeConfig" | "onUpdateSessionCount" | "config" | "configIsYaml" | "canSaveConfig" | "fixedEndpoints" | "configPath" | "createApolloLink" | "workspaceName">>; export default _default;