> For the complete documentation index, see [llms.txt](https://gentlepie.gitbook.io/bublitt_developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gentlepie.gitbook.io/bublitt_developer/sdk/typescript.md).

# Typescript

이 문서는 typescript를 위한 serviceType에 대해 안내합니다.

```typescript
declare global {
  interface Window {
    Bublitt: Bublitt;
  }
}

interface Bublitt {
  init: (c: BublittInitalProps) => void;
  create: (q: BublittCreateProps) => void;
  shutdown: () => void;
}

interface BublittInitalProps {
  serviceName: string;
  serviceKey: string;
}

interface BublittCreateProps {
  title: string;
  renderFloatingBadge: boolean;
  titleColor?: string;
  headerBackgroundColor?: string;
  closeButtonColor?: string;
  chatWidth?: number;
  chatHeight?: number;
  backgroundColor?: string;
  bubbleBackgroundColor?: string;
  bubbleTextColor?: string;
  timeStampColor?: string;
  agentBubbleBackgroundColor?: string;
  agentTextColor?: string;
  agentTimeStampColor?: string;
  copyButtonBackgroundColor?: string; //
  copyIconColor?: string; //
  inputBackgroundColor?: string;
  inputPlaceholderColor?: string;
  inputPlaceholder?: string;
  inputPlaceholderMaxLength?: number;
  welcomeMessages?: string[];
}

export const Bublitt = window.Bublitt;
```
